diff options
author | Philip Reames <listmail@philipreames.com> | 2015-09-10 00:44:10 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2015-09-10 00:44:10 +0000 |
commit | 953817b65d122e5e5a9fa333a80836352ba799a9 (patch) | |
tree | e75edd8dfbbeed82c432d688d08d6a3718618609 /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | |
parent | e89c8c80331eab41aec8f7d07eff890d1b98692f (diff) | |
download | bcm5719-llvm-953817b65d122e5e5a9fa333a80836352ba799a9.tar.gz bcm5719-llvm-953817b65d122e5e5a9fa333a80836352ba799a9.zip |
[RewriteStatepointsForGC] Minor refactor to use shared implementation [NFC]
llvm-svn: 247223
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 57687def2d9..2bb0918f6eb 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1029,14 +1029,7 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) { auto *BdvIE = cast<InsertElementInst>(BDV); auto UpdateOperand = [&](int OperandIdx) { Value *InVal = BdvIE->getOperand(OperandIdx); - Value *Base = findBaseOrBDV(InVal, cache); - if (!isKnownBaseResult(Base)) { - // Either conflict or base. - assert(States.count(Base)); - Base = States[Base].getBase(); - assert(Base != nullptr && "unknown BDVState!"); - } - assert(Base && "can't be null"); + Value *Base = getBaseForInput(InVal, BaseIE); BaseIE->setOperand(OperandIdx, Base); }; UpdateOperand(0); // vector operand |