[PATCH] D84942: [ConstantFolding] fold abs intrinsic

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 08:59:05 PDT 2020


aqjune added inline comments.


================
Comment at: llvm/test/Analysis/ConstantFolding/abs.ll:46
-; CHECK-NEXT:    [[R:%.*]] = call <8 x i8> @llvm.abs.v8i8(<8 x i8> <i8 -127, i8 -126, i8 -42, i8 -1, i8 0, i8 1, i8 42, i8 127>, i1 true)
-; CHECK-NEXT:    ret <8 x i8> [[R]]
 ;
----------------
(a silly question) abs with a vector input is optimized here, but this patch is about non-vector integers; do you have any idea which part of ConstantFolding.cpp is responsible for this?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84942/new/

https://reviews.llvm.org/D84942



More information about the llvm-commits mailing list