diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2017-05-01 23:54:41 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2017-05-01 23:54:41 +0000 |
commit | 7bc507a2e816d6950c1337a59ae0dbb59be1c5e8 (patch) | |
tree | 48d8e0724a36ee5cb13d9844695c0fcd88d24d9d /llvm/lib | |
parent | 9d4eb6922e6c304dd24e96b62053def54d3dfde6 (diff) | |
download | bcm5719-llvm-7bc507a2e816d6950c1337a59ae0dbb59be1c5e8.tar.gz bcm5719-llvm-7bc507a2e816d6950c1337a59ae0dbb59be1c5e8.zip |
Revert r301880
This change caused buildbot failures, apparently because we're not
passing around types that InstSimplify is used to seeing. I'm not overly
familiar with InstSimplify, so I'm reverting this until I can figure out
what exactly is wrong.
llvm-svn: 301885
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index 31371546946..2f25a118366 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/lib/Analysis/InstructionSimplify.cpp @@ -62,8 +62,6 @@ static Value *SimplifyOrInst(Value *, Value *, const SimplifyQuery &, unsigned); static Value *SimplifyXorInst(Value *, Value *, const SimplifyQuery &, unsigned); static Value *SimplifyCastInst(unsigned, Value *, Type *, const SimplifyQuery &, unsigned); -static Value *SimplifyGEPInst(Type *, ArrayRef<Value *>, const SimplifyQuery &, - unsigned); /// For a boolean type or a vector of boolean type, return false or a vector /// with every element false. @@ -3493,17 +3491,6 @@ static const Value *SimplifyWithOpReplaced(Value *V, Value *Op, Value *RepOp, } } - // Same for GEPs. - if (auto *GEP = dyn_cast<GetElementPtrInst>(I)) { - if (MaxRecurse) { - SmallVector<Value *, 8> NewOps(GEP->getNumOperands()); - transform(GEP->operands(), NewOps.begin(), - [&](Value *V) { return V == Op ? RepOp : V; }); - return SimplifyGEPInst(GEP->getSourceElementType(), NewOps, Q, - MaxRecurse - 1); - } - } - // TODO: We could hand off more cases to instsimplify here. // If all operands are constant after substituting Op for RepOp then we can |