The Simplify* functions expect undefs to be replaced as we go along, to
avoid the same undef use being used with different values.
See PR33165 for an extensive discussion of the issue.
Differential D51922
[NewGVN] Apply SimplifySelectInst if any of the options is undef. fhahn on Sep 11 2018, 3:36 AM. Authored by
Details
The Simplify* functions expect undefs to be replaced as we go along, to See PR33165 for an extensive discussion of the issue.
Diff Detail Event Timeline
Comment Actions unfortunately I did not really have much time to focus on some of the outstanding NewGVN patches, but finally found some time :) While this patch on it's own makes sense, it also hides a slightly different problem, but I think we finally have a reasonable approach to fix this other problem more generally (D84792), so I think it should be safe to also land this patch (which is an additional optimization). Thanks for taking a look! Comment Actions After d236e1c7b606c461b5cb8a8a87d50ead5d1bcbb9, the original optimizations do not trigger any more, as uses of undef are restricted. I don't think this is needed any longer. |
Please add run commant with -passes=newgvn