diff options
author | Duncan Sands <baldrick@free.fr> | 2010-11-22 13:42:49 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-11-22 13:42:49 +0000 |
commit | 8a0f486e364edfd034f41ad3c8670335b5ecbde5 (patch) | |
tree | 9a23ff595197bb71f5359e0320ce9a27c6f63714 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | |
parent | 13c13d4da880de70e6c9ee84a149a2b8e8eaaa3d (diff) | |
download | bcm5719-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.cpp | 3 |
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; |