[SCEVExpander] Name temporary instructions for LCSSA insertion (NFC).

This commit is contained in:
Florian Hahn 2020-07-31 18:16:01 +01:00
parent 2144a3bdbb
commit 3b0d30ffd3
1 changed files with 4 additions and 2 deletions

View File

@ -1771,10 +1771,12 @@ Value *SCEVExpander::expandCodeForImpl(const SCEV *SH, Type *Ty, bool Root) {
// instruction.
Instruction *Tmp;
if (Inst->getType()->isIntegerTy())
Tmp = cast<Instruction>(Builder.CreateAdd(Inst, Inst));
Tmp =
cast<Instruction>(Builder.CreateAdd(Inst, Inst, "tmp.lcssa.user"));
else {
assert(Inst->getType()->isPointerTy());
Tmp = cast<Instruction>(Builder.CreateGEP(Inst, Builder.getInt32(1)));
Tmp = cast<Instruction>(
Builder.CreateGEP(Inst, Builder.getInt32(1), "tmp.lcssa.user"));
}
V = fixupLCSSAFormFor(Tmp, 0);