[llvm] 3b0d30f - [SCEVExpander] Name temporary instructions for LCSSA insertion (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 10:17:28 PDT 2020
Author: Florian Hahn
Date: 2020-07-31T18:16:46+01:00
New Revision: 3b0d30ffd30a704d09a34031d8797e22b708caab
URL: https://github.com/llvm/llvm-project/commit/3b0d30ffd30a704d09a34031d8797e22b708caab
DIFF: https://github.com/llvm/llvm-project/commit/3b0d30ffd30a704d09a34031d8797e22b708caab.diff
LOG: [SCEVExpander] Name temporary instructions for LCSSA insertion (NFC).
Added:
Modified:
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
index 1a10e580c68c..d31bf6791075 100644
--- a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
@@ -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);
More information about the llvm-commits
mailing list