[llvm] [AMDGPU] Do not coerce values defined by terminators in LiveRegOptimizer (PR #218868)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 02:37:39 PDT 2026


================
@@ -385,6 +385,9 @@ bool LiveRegOptimizer::optimizeLiveType(
 
   // Coerce and track the defs.
   for (Instruction *D : Defs) {
+    // Terminators can't be coerced in-block, so skip them.
+    if (D->isTerminator())
----------------
arsenm wrote:

Maybe avoid collecting these in the first place?

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


More information about the llvm-commits mailing list