[PATCH] D53496: AMDGPU: Rewrite SILowerI1Copies to always stay on SALU

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 23 08:33:59 PDT 2018


rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/SILowerI1Copies.cpp:695
+    MI = MRI->getUniqueVRegDef(Reg);
+    if (MI->getOpcode() != AMDGPU::COPY)
+      break;
----------------
nhaehnle wrote:
> rampitec wrote:
> > MI can be null technically.
> How? This pass runs on Machine SSA form.
As far as I understand you may have two defs in case of a superreg.


Repository:
  rL LLVM

https://reviews.llvm.org/D53496





More information about the llvm-commits mailing list