[llvm] [AMDGPU] Fix canonicalization of truncated values. (PR #83054)

Harald van Dijk via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 03:21:33 PST 2024


================
@@ -12603,20 +12627,21 @@ bool SITargetLowering::isCanonicalized(SelectionDAG &DAG, SDValue Op,
     case Intrinsic::amdgcn_trig_preop:
     case Intrinsic::amdgcn_log:
     case Intrinsic::amdgcn_exp2:
+    case Intrinsic::amdgcn_sqrt:
----------------
hvdijk wrote:

Not unrelated, this is one of the things that came up in LLVM's testsuite where previously we were able to optimize away a `fcanonicalize` because we saw `sqrt`, but now we only check later and see `amdgcn_sqrt`.

https://github.com/llvm/llvm-project/pull/83054


More information about the llvm-commits mailing list