[llvm] [AMDGPU] Duplicate packed fp32 instructions (PR #212857)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 13:51:28 PDT 2026
================
@@ -3818,17 +3818,31 @@ def : GCNPat<
(V_MUL_F32_e64 0, (i32 CONST.FP32_NEG_ONE), $src_mods, $src)
>;
-let SubtargetPredicate = HasPackedFP32Ops in {
-def : GCNPat<
- (fcanonicalize (v2f32 (VOP3PMods v2f32:$src, i32:$src_mods))),
- (V_PK_MUL_F32 0, (i64 CONST.FP32_ONE), $src_mods, $src)
->;
+let OtherPredicates = [HasPackedFP32Ops] in {
+let SubtargetPredicate = isGFX90APlus in {
----------------
rampitec wrote:
Duplicated feature too.
https://github.com/llvm/llvm-project/pull/212857
More information about the llvm-commits
mailing list