[llvm] [AMDGPU] Fix machine verification failure from INIT_EXEC lowering (PR #98333)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 09:24:36 PDT 2024


================
@@ -1717,7 +1719,7 @@ bool SIWholeQuadMode::runOnMachineFunction(MachineFunction &MF) {
   LIS->removeAllRegUnitsForPhysReg(AMDGPU::SCC);
 
   // If we performed any kills then recompute EXEC
-  if (!KillInstrs.empty())
+  if (!KillInstrs.empty() || !InitExecInstrs.empty())
     LIS->removeAllRegUnitsForPhysReg(AMDGPU::EXEC);
----------------
arsenm wrote:

This shouldn't be necessary in the first place. Reserved registers, like exec, do not have liveness tracked 

https://github.com/llvm/llvm-project/pull/98333


More information about the llvm-commits mailing list