[llvm] c423a58 - [ARM] Remove setPreservesCFG from ARMBlockPlacement

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 2 06:15:56 PDT 2021


Author: David Green
Date: 2021-08-02T14:15:45+01:00
New Revision: c423a586a7107becc7c81b144f38028a0ab57043

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

LOG: [ARM] Remove setPreservesCFG from ARMBlockPlacement

As of 28293918409dd3a5a it no longer preserves the CFG, needing to
split blocks in order to add DLS instructions.

Added: 
    

Modified: 
    llvm/lib/Target/ARM/ARMBlockPlacement.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/ARMBlockPlacement.cpp b/llvm/lib/Target/ARM/ARMBlockPlacement.cpp
index 806390bbf928..ec58f2051f63 100644
--- a/llvm/lib/Target/ARM/ARMBlockPlacement.cpp
+++ b/llvm/lib/Target/ARM/ARMBlockPlacement.cpp
@@ -44,7 +44,6 @@ class ARMBlockPlacement : public MachineFunctionPass {
   bool revertWhileToDo(MachineInstr *WLS, MachineLoop *ML);
 
   void getAnalysisUsage(AnalysisUsage &AU) const override {
-    AU.setPreservesCFG();
     AU.addRequired<MachineLoopInfo>();
     MachineFunctionPass::getAnalysisUsage(AU);
   }


        


More information about the llvm-commits mailing list