[PATCH] D40158: AMDGPU: Use gfx9 carry-less add/sub instructions

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 13:02:42 PST 2017


rampitec requested changes to this revision.
rampitec added inline comments.
This revision now requires changes to proceed.


================
Comment at: lib/Target/AMDGPU/SIInstrInfo.cpp:3897
+
+    unsigned NewOpc = Opc == AMDGPU::S_ADD_I32 ?
+      AMDGPU::V_ADD_U32_e64 : AMDGPU::V_SUB_U32_e64;
----------------
Now you can send here S_ADD_U32 and you do not want to convert it into V_SUB_U32_e64.


https://reviews.llvm.org/D40158





More information about the llvm-commits mailing list