[PATCH] D136466: [StrictFP][IPSCCP] Constant fold constrained intrinsics

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 11:24:15 PDT 2022


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SCCPSolver.cpp:1196
+      if (IsCI && A.get()->getType()->isMetadataTy())
+        continue;
       ValueLatticeElement State = getValueState(A);
----------------
I don't think we need to check for constrained intrinsics here, we can always skip these, as also done here: https://github.com/llvm/llvm-project/blob/de1e911f02a0b4369287c7d056efc94c3f5dc0cd/llvm/lib/Analysis/InstructionSimplify.cpp#L6299


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136466



More information about the llvm-commits mailing list