[PATCH] D44364: [AMDGPU] Fix the SDWA Peephole phase to handle src for dst:UNUSED_PRESERVE.

Michael Bedy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 11 19:37:30 PDT 2018


mjbedy added inline comments.


================
Comment at: lib/Target/AMDGPU/SIPeepholeSDWA.cpp:1035
+    // We also expect a vdst, since sdst can't preserve.
+    auto PreserveDstIdx = AMDGPU::getNamedOperandIdx(SDWAOpcode, AMDGPU::OpName::vdst);
+    assert(PreserveDstIdx != -1);
----------------
I couldn't find a way to get at the tied operand without using an index, but I changed all the other cases to use the non-index form.


Repository:
  rL LLVM

https://reviews.llvm.org/D44364





More information about the llvm-commits mailing list