[PATCH] D122013: [InstCombine] Fold abs of known negative operand when source is sub
chenglin.bi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 18 17:24:27 PDT 2022
bcl5980 added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/abs-intrinsic.ll:430
+define i32 @sub_abs(i32 %x, i32 %y) {
+; CHECK-LABEL: @sub_abs
+entry:
----------------
RKSimon wrote:
> where are the actual codegen checks?
; CHECK-NOT: llvm.abs.i32
If the code works, llvm.abs.i32 will be removed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122013/new/
https://reviews.llvm.org/D122013
More information about the llvm-commits
mailing list