[ARM] Fix for buildbots
authorSam Parker <sam.parker@arm.com>
Tue, 17 Sep 2019 14:21:36 +0000 (14:21 +0000)
committerSam Parker <sam.parker@arm.com>
Tue, 17 Sep 2019 14:21:36 +0000 (14:21 +0000)
Remove setPreservesCFG from ARMConstantIslandPass and add a couple
of -verify-machine-dom-info instances into the existing codegen
tests.

llvm-svn: 372126

llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
llvm/test/CodeGen/ARM/constant-islands-cfg.mir
llvm/test/CodeGen/Thumb2/constant-islands.ll

index 0533fbdc07184bb7fc8a783c766cdb28705f80d0..a3b7439010a544401bd13669f70fd8ac07289b0a 100644 (file)
@@ -229,7 +229,6 @@ namespace {
     bool runOnMachineFunction(MachineFunction &MF) override;
 
     void getAnalysisUsage(AnalysisUsage &AU) const override {
-      AU.setPreservesCFG();
       AU.addRequired<MachineDominatorTree>();
       MachineFunctionPass::getAnalysisUsage(AU);
     }
index add9e2003a5073f916b0343a7dd1bb948f9ae8cf..32548dfe67eb1ebe833b1483411b34f8da4b5621 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llc -mtriple=thumbv6m-apple-ios -run-pass=arm-cp-islands %s -o - | FileCheck %s
+# RUN: llc -mtriple=thumbv6m-apple-ios -run-pass=arm-cp-islands --verify-machine-dom-info %s -o - | FileCheck %s
 --- |
   ; Function Attrs: minsize nounwind optsize uwtable
   define arm_aapcscc double @test_split_cfg(double %a, double %b) local_unnamed_addr #0 {
index 81a1f357e67df50815927e6fdfe8e7edce9949d9..ac323adfd3f1d45cf5393cd40de13f2109424b6a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=arm-apple-ios   -mcpu=cortex-a8 -O0 -filetype=obj -o %t.o
+; RUN: llc < %s -mtriple=arm-apple-ios   -mcpu=cortex-a8 -O0 -filetype=obj -verify-machine-dom-info -o %t.o
 ; RUN: llc < %s -mtriple=thumb-apple-ios -mcpu=cortex-a8 -O0 -filetype=obj -o %t.o
 ; RUN: llc < %s -mtriple=arm-apple-ios   -mcpu=cortex-a8 -O2 -filetype=obj -verify-machineinstrs -o %t.o
 ; RUN: llc < %s -mtriple=thumb-apple-ios -mcpu=cortex-a8 -O2 -filetype=obj -verify-machineinstrs -o %t.o