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

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 23 11:42:13 PDT 2018


arsenm added inline comments.


================
Comment at: lib/Target/AMDGPU/SILowerI1Copies.cpp:695
+    MI = MRI->getUniqueVRegDef(Reg);
+    if (MI->getOpcode() != AMDGPU::COPY)
+      break;
----------------
rampitec wrote:
> 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.
You can't have 2 defs of a super register in SSA. The case I would worry about is if the register is undef or an argument, which I'm not sure are an issue this early


Repository:
  rL LLVM

https://reviews.llvm.org/D53496





More information about the llvm-commits mailing list