[PATCH] D85593: [InstCombine] ~(~X + Y) -> X - Y
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 10 15:03:44 PDT 2020
spatel added subscribers: efriedma, regehr, nlopes.
spatel added a comment.
I agree that this looks wrong for the example with undef substituted in...but that also means that almost every instcombine that doesn't specify hasOneUse() is wrong!
But then how are we not miscompiling more often? We must be simplifying instructions with undefs before they can escape and cause trouble as @nikic hinted at?
@efriedma @regehr @nlopes - comments?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85593/new/
https://reviews.llvm.org/D85593
More information about the llvm-commits
mailing list