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.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D4238
IR: Fold away compares between GV GEPs and GVs ClosedPublic Authored by majnemer on Jun 20 2014, 5:31 PM.
Details Summary A GEP of a non-weak global variable will not be equivalent to another
Diff Detail Event Timelinemajnemer updated this object. This revision is now accepted and ready to land.Jul 4 2014, 11:53 AM
Revision Contents
Diff 10712 lib/IR/ConstantFold.cpp
test/Other/constant-fold-gep.ll
test/Transforms/InstCombine/2010-03-03-ExtElim.ll
test/Transforms/InstCombine/pr20079.ll
test/Transforms/LoopVectorize/if-conversion.ll
|
(No action required:) I realize this is copied from elsewhere, but I don't see why we can't follow non-weak aliases as long as they point to definitions.