Lines Matching full:branch
13 // positions pass, and a branch pseudo op to machine branch opcode pass. This
29 #define DEBUG_TYPE "ppc-branch-select"
55 return "PowerPC Branch Selector";
61 INITIALIZE_PASS(PPCBSel, "ppc-branch-select", "PowerPC Branch Selector",
64 /// createPPCBranchSelectionPass - returns an instance of the Branch Selection
117 // If the entire function is smaller than the displacement of a branch field,
125 // For each conditional branch, if the offset to its destination is larger
126 // than the offset field allows, transform it into a long branch sequence
128 // short branch:
130 // long branch:
162 // Determine the offset from the current branch to the destination
166 // If this is a backwards branch, the delta is the offset from the
167 // start of this block to this branch, plus the sizes of all blocks
182 // If this branch is in range, ignore it.
188 // Otherwise, we have to expand it to a long branch.
194 // 0. PPC branch predicate
200 // Jump over the uncond branch inst (i.e. $PC+8) on opposite condition.
218 llvm_unreachable("Unhandled branch type!");
221 // Uncond branch to the real destination.
224 // Remove the old branch from the function.