[PATCH] D51398: [InstCombine] Fold (neg (min/max ~X, C)) -> (add (min/max X, ~C), 1)
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 29 06:58:31 PDT 2018
spatel added a comment.
On 2nd thought...
This is a missed general canonicalization:
https://rise4fun.com/Alive/vTag
If we add that, then we see that this isn't really a subtract fold - any trailing op for the min/max could get simplified when we push the 'not' through the min/max.
https://reviews.llvm.org/D51398
More information about the llvm-commits
mailing list