IR: Fold away compares between GV GEPs and GVs
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 4 Jul 2014 22:05:26 +0000 (22:05 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 4 Jul 2014 22:05:26 +0000 (22:05 +0000)
commitd1bea693e20b470f0c2410b68bd867c7203f8b19
treec0d2134190dd82029f5513a16ae4fec4c142eae0
parent96bfda8dbcdd426edea402bb4b539bba5392322b
IR: Fold away compares between GV GEPs and GVs

A GEP of a non-weak global variable will not be equivalent to another
non-weak global variable or a GEP of such a variable.

Differential Revision: http://reviews.llvm.org/D4238

llvm-svn: 212360
llvm/lib/IR/ConstantFold.cpp
llvm/test/Other/constant-fold-gep.ll
llvm/test/Transforms/InstCombine/2010-03-03-ExtElim.ll
llvm/test/Transforms/InstCombine/pr20079.ll
llvm/test/Transforms/LoopVectorize/if-conversion.ll