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)
commit74ffa5c62fd248c3009c615808da8737a45301ab
treee89455f8f51822ac68325e427982bcdba49af7f5
parent0fd1b6c0dce83124e7578e54727ec1058a1882da
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.

llvm-svn: 302446
llvm/lib/IR/ConstantFold.cpp
llvm/test/Transforms/GVN/PRE/2011-06-01-NonLocalMemdepMiscompile.ll
llvm/test/Transforms/IndVarSimplify/2011-10-27-lftrnull.ll