[PATCH] D156499: [InstCombine] Fold abs of known sign operand when source is sub
Allen zhong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 2 20:36:31 PDT 2023
Allen marked 2 inline comments as done.
Allen added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:1521
+ // abs(x-y) --> y-x where x <= y
+ Value *Y;
----------------
goldstein.w.n wrote:
> You also do `abs(x-y) --> x - y where x > y`.
Apply your comment, thanks
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156499/new/
https://reviews.llvm.org/D156499
More information about the llvm-commits
mailing list