Page MenuHomePhabricator

[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

Repository
rL LLVM

Event Timeline

davide accepted this revision.May 1 2017, 3:02 PM
This revision is now accepted and ready to land.May 1 2017, 3:02 PM
This revision was automatically updated to reflect the committed changes.