Home | History | Annotate | Download | only in Scalar

Lines Matching defs:rewrite

295   /// \brief Instructions which will become dead if we rewrite the alloca.
303 /// \brief Operands which will become dead if we rewrite the alloca.
306 /// undef when we rewrite the alloca. These show up in out-of-bounds inputs
932 /// directly promoted. Finally, each time we rewrite a use of an alloca other
1157 // Rewrite all loads of the PN to use the new PHI.
1692 /// This is a quick test to check whether we can rewrite a particular alloca
1801 /// This is a quick test to check whether we can rewrite the integer loads and
1982 /// \brief Visitor to rewrite instructions using p particular slice of an alloca
2032 // Track post-rewrite users which are PHI nodes and Selects.
2106 // Every instruction which can end up as a user must have a rewrite rule.
2108 DEBUG(dbgs() << " !!!! Cannot rewrite: " << I << "\n");
2109 llvm_unreachable("No rewrite rule for this instruction!");
2550 // Rewrite the size as needed.
2745 /// \brief Visitor to rewrite aggregate loads and stores as scalar.
2756 /// Queue of pointer uses to analyze and potentially rewrite.
2769 /// Rewrite loads and stores through a pointer and all pointers derived from
2771 bool rewrite(Instruction &I) {
2791 // Conservative default is to not rewrite anything.
3097 /// \brief Rewrite an alloca partition's users.
3100 /// to rewrite uses of an alloca partition to be conducive for SSA value
3103 /// rewrite the uses of the old alloca to point at the new one and have the
3104 /// appropriate new offsets. It also evaluates how successful the rewrite was
3140 // Check for the case where we're going to rewrite to a new alloca of the
3333 rewrite uses and erase old split uses.
3335 // Rewrite a sequence of overlapping slices.
3371 // Otherwise, we have a tail of split slices. Rewrite them with an empty
3437 Changed |= AggRewriter.rewrite(AI);