[llvm] fac4206 - [EarlyIfConversion] Simplify condition after #65729

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 02:56:04 PDT 2023


Author: Jay Foad
Date: 2023-10-11T10:53:12+01:00
New Revision: fac4206e66bc84e29b142992441e635cbb0b62c5

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

LOG: [EarlyIfConversion] Simplify condition after #65729

Added: 
    

Modified: 
    llvm/lib/CodeGen/EarlyIfConversion.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp
index 3086d953a23699f..31e107ade1ccbb0 100644
--- a/llvm/lib/CodeGen/EarlyIfConversion.cpp
+++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp
@@ -828,8 +828,6 @@ void updateDomTree(MachineDominatorTree *DomTree, const SSAIfConv &IfConv,
 /// Update LoopInfo after if-conversion.
 void updateLoops(MachineLoopInfo *Loops,
                  ArrayRef<MachineBasicBlock *> Removed) {
-  if (!Loops)
-    return;
   // If-conversion doesn't change loop structure, and it doesn't mess with back
   // edges, so updating LoopInfo is simply removing the dead blocks.
   for (auto *B : Removed)


        


More information about the llvm-commits mailing list