I'm unsure if we want to do all of the GEP simplifications here; I'm happy to factor some of the Ops.size() == 2 checks out and just do those if that's preferable.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D31435
[InstSimplify] Fold (select (icmp eq V 0) P (getelementptr P V)) -> (getelementptr P V) ClosedPublic Authored by george.burgess.iv on Mar 28 2017, 1:31 PM.
Details Summary I'm unsure if we want to do all of the GEP simplifications here; I'm happy to factor some of the Ops.size() == 2 checks out and just do those if that's preferable.
Diff Detail Event TimelineThis revision is now accepted and ready to land.May 1 2017, 3:02 PM Closed by commit rL301880: [InstSimplify] Handle selects of GEPs with 0 offset (authored by • gbiv). · Explain WhyMay 1 2017, 4:54 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 93286 lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/select.ll
|