[PATCH] D44046: [AMDGPU] Fixed incorrect break from loop

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 15:49:39 PST 2018


rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/SILowerControlFlow.cpp:354
+  if (MI.getOperand(1).isReg())
+    if (MachineInstr *Def = MRI->getUniqueVRegDef(MI.getOperand(1).getReg()))
+      if (Def->getParent() == MI.getParent())
----------------
arsenm wrote:
> Can you add a testcase where this will fail if there is no defining instruction (e.g. the source value was a function argument)
Can this be a partial def?


Repository:
  rL LLVM

https://reviews.llvm.org/D44046





More information about the llvm-commits mailing list