[PATCH] D85053: [InstSimplify] Fold abs(abs(x)) -> abs(x)
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 1 01:01:08 PDT 2020
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
LG. This has some overlap with D85043 <https://reviews.llvm.org/D85043>, which will already catch the cases where the inner abs has poison=true, but not those with poison=false, so this seems reasonable as an explicit fold. One could make an argument that this should live in InstCombine and try to preserve the outer poison flag, but this doesn't seem particularly important to me.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85053/new/
https://reviews.llvm.org/D85053
More information about the llvm-commits
mailing list