[PATCH] D35524: [AMDGPU] Add support for Whole Wavefront Mode

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 10:45:46 PDT 2017


arsenm added inline comments.


================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:3300-3301
+    SDValue Src = Op.getOperand(1);
+    return SDValue(DAG.getMachineNode(AMDGPU::WWM, DL, Src.getValueType(), Src),
+                   0);
+  }
----------------
Shouldn't this have a chain?


================
Comment at: test/CodeGen/AMDGPU/wqm.ll:123
+  %out = fadd float %src0, %src1
+  %out.0 = call float @llvm.amdgcn.wwm.f32(float %out)
+  ret float %out.0
----------------
Need some additional tests with wwm using different types


https://reviews.llvm.org/D35524





More information about the llvm-commits mailing list