[PATCH] D120150: Constant folding of llvm.amdgcn.trig.preop

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 18 06:47:07 PST 2022


foad added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp:1045
+
+    const APInt &SegVal = Cseg->getValue();
+    bool Ovflow;
----------------
This (and some of the calculation below) can just use `int`. No need for APInt.


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

https://reviews.llvm.org/D120150



More information about the llvm-commits mailing list