[PATCH] D30038: [ADMGPU] SDWA peephole optimization pass.
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 16 16:40:23 PDT 2017
rampitec added inline comments.
================
Comment at: lib/Target/AMDGPU/SIPeepholeSDWA.cpp:384
+ for (MachineInstr &MI : MBB) {
+ unsigned Opcode = MI.getOpcode();
+ switch (Opcode) {
----------------
What will happen if instruction already comes to the pass with either SDWA or DPP in it? There can be only one such operand per instruction.
https://reviews.llvm.org/D30038
More information about the llvm-commits
mailing list