[PATCH] D87456: AMDGPU/GlobalISel Check target options before isKnownNeverSNaN
Petar Avramovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 08:02:24 PDT 2020
Petar.Avramovic added a comment.
With G_FCANONICALIZE out of the way, we can now select some of the med3 patterns that were imported in D87351 <https://reviews.llvm.org/D87351>.
================
Comment at: llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll:69-71
+; GFX9-NEXT: v_sub_f32_e32 v1, 0x80000000, v1
+; GFX9-NEXT: s_waitcnt vmcnt(0)
+; GFX9-NEXT: v_med3_f32 v1, v1, v2, v3
----------------
This was not folded because G_FNEG was expected.
TODO: add combine for G_FNEG.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87456/new/
https://reviews.llvm.org/D87456
More information about the llvm-commits
mailing list