From 85bbff6c94695f07cc1a9765b4d384ed18d2fd7c Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 22 Nov 2010 13:42:49 +0000 Subject: Move the "gep undef" -> "undef" transform from instcombine to InstructionSimplify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119970 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/InstCombine/InstructionCombining.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/Transforms') diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 61676f8..89d5bfb 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -523,9 +523,6 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { Value *PtrOp = GEP.getOperand(0); - if (isa(GEP.getOperand(0))) - return ReplaceInstUsesWith(GEP, UndefValue::get(GEP.getType())); - // Eliminate unneeded casts for indices. if (TD) { bool MadeChange = false; -- cgit v1.1