summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-22 13:42:49 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-22 13:42:49 +0000
commit8a0f486e364edfd034f41ad3c8670335b5ecbde5 (patch)
tree9a23ff595197bb71f5359e0320ce9a27c6f63714 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
parent13c13d4da880de70e6c9ee84a149a2b8e8eaaa3d (diff)
downloadbcm5719-llvm-8a0f486e364edfd034f41ad3c8670335b5ecbde5.tar.gz
bcm5719-llvm-8a0f486e364edfd034f41ad3c8670335b5ecbde5.zip
Move the "gep undef" -> "undef" transform from instcombine to
InstructionSimplify. llvm-svn: 119970
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 61676f82b1e..89d5bfbb6fc 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -523,9 +523,6 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
Value *PtrOp = GEP.getOperand(0);
- if (isa<UndefValue>(GEP.getOperand(0)))
- return ReplaceInstUsesWith(GEP, UndefValue::get(GEP.getType()));
-
// Eliminate unneeded casts for indices.
if (TD) {
bool MadeChange = false;
OpenPOWER on IntegriCloud