summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/GVNHoist.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-09-07 23:39:04 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-09-07 23:39:04 +0000
commit8f1dd5c41eb8a50bdd7f89e4afbb5273caa945a1 (patch)
tree7199fe5d8c0e337bd81a984423b31f3720973de3 /llvm/lib/Transforms/Scalar/GVNHoist.cpp
parentc5e53b2a53a00fb5664fd7358970b35161aab68d (diff)
downloadbcm5719-llvm-8f1dd5c41eb8a50bdd7f89e4afbb5273caa945a1.tar.gz
bcm5719-llvm-8f1dd5c41eb8a50bdd7f89e4afbb5273caa945a1.zip
IR: Remove Value::intersectOptionalDataWith, replace all calls with calls to Instruction::andIRFlags.
The two functions are functionally equivalent. Differential Revision: https://reviews.llvm.org/D22830 llvm-svn: 280884
Diffstat (limited to 'llvm/lib/Transforms/Scalar/GVNHoist.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/GVNHoist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVNHoist.cpp b/llvm/lib/Transforms/Scalar/GVNHoist.cpp
index 4a6e934b573..b09bd36b6b4 100644
--- a/llvm/lib/Transforms/Scalar/GVNHoist.cpp
+++ b/llvm/lib/Transforms/Scalar/GVNHoist.cpp
@@ -696,7 +696,7 @@ private:
else
OtherGep = cast<GetElementPtrInst>(
cast<StoreInst>(OtherInst)->getPointerOperand());
- ClonedGep->intersectOptionalDataWith(OtherGep);
+ ClonedGep->andIRFlags(OtherGep);
}
// Replace uses of Gep with ClonedGep in Repl.
@@ -843,7 +843,7 @@ private:
MSSA->removeMemoryAccess(OldMA);
}
- Repl->intersectOptionalDataWith(I);
+ Repl->andIRFlags(I);
combineKnownMetadata(Repl, I);
I->replaceAllUsesWith(Repl);
// Also invalidate the Alias Analysis cache.
OpenPOWER on IntegriCloud