]> granicus.if.org Git - llvm/commit
ConstantFold: Fold getelementptr (i32, i32* null, i64 undef) to null.
authorDaniel Berlin <dberlin@dberlin.org>
Mon, 8 May 2017 17:37:29 +0000 (17:37 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Mon, 8 May 2017 17:37:29 +0000 (17:37 +0000)
commit30725541b4e8670a6684ad95533379b42ffcd9fe
tree679f6d084ff694ae7fbcd4a5a9f2c9bc283f2b05
parentd99549318e64675c75c2ecad2abc73b54fb730ec
ConstantFold: Fold  getelementptr (i32, i32* null, i64 undef) to null.
Transforms/IndVarSimplify/2011-10-27-lftrnull will fail if this regresses.
Transforms/GVN/PRE/2011-06-01-NonLocalMemdepMiscompile.ll has been changed to still test what it was
trying to test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302446 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Transforms/GVN/PRE/2011-06-01-NonLocalMemdepMiscompile.ll
test/Transforms/IndVarSimplify/2011-10-27-lftrnull.ll