[llvm] 3a09bc0 - [AMDGPU] Fix variable name in PhiIncomingAnalysis. NFC. (#217899)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 06:12:17 PDT 2026


Author: Jay Foad
Date: 2026-08-21T13:12:12Z
New Revision: 3a09bc0a8eb5abd71e627b0cf2201f3c0b497946

URL: https://github.com/llvm/llvm-project/commit/3a09bc0a8eb5abd71e627b0cf2201f3c0b497946
DIFF: https://github.com/llvm/llvm-project/commit/3a09bc0a8eb5abd71e627b0cf2201f3c0b497946.diff

LOG: [AMDGPU] Fix variable name in PhiIncomingAnalysis. NFC. (#217899)

All BBs in ReachableMap are "reachable". The bool map value tells you
whether a reachable BB is a "source", as in isSource().

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp b/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
index 77438bb35606d..62b3638812ab9 100644
--- a/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
@@ -161,7 +161,7 @@ class PhiIncomingAnalysis {
         append_range(Stack, MBB->successors());
     }
 
-    for (auto &[MBB, Reachable] : ReachableMap) {
+    for (auto &[MBB, IsSource] : ReachableMap) {
       bool HaveReachablePred = false;
       for (MachineBasicBlock *Pred : MBB->predecessors()) {
         if (ReachableMap.count(Pred)) {
@@ -171,7 +171,7 @@ class PhiIncomingAnalysis {
         }
       }
       if (!HaveReachablePred)
-        Reachable = true;
+        IsSource = true;
       if (HaveReachablePred) {
         for (MachineBasicBlock *UnreachablePred : Stack) {
           if (!llvm::is_contained(Predecessors, UnreachablePred))


        


More information about the llvm-commits mailing list