diff options
author | Sam Parker <sam.parker@arm.com> | 2019-09-17 14:21:36 +0000 |
---|---|---|
committer | Sam Parker <sam.parker@arm.com> | 2019-09-17 14:21:36 +0000 |
commit | 1d9ba08543dca55f1d5e8ba83d065fc2090ba106 (patch) | |
tree | ac9fc35b5033213b71383f2761d9406ce8495fd7 | |
parent | bdff164e0e07224948244ddc9bce5fd7052e09b9 (diff) | |
download | bcm5719-llvm-1d9ba08543dca55f1d5e8ba83d065fc2090ba106.tar.gz bcm5719-llvm-1d9ba08543dca55f1d5e8ba83d065fc2090ba106.zip |
[ARM] Fix for buildbots
Remove setPreservesCFG from ARMConstantIslandPass and add a couple
of -verify-machine-dom-info instances into the existing codegen
tests.
llvm-svn: 372126
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 1 | ||||
-rw-r--r-- | llvm/test/CodeGen/ARM/constant-islands-cfg.mir | 2 | ||||
-rw-r--r-- | llvm/test/CodeGen/Thumb2/constant-islands.ll | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index 0533fbdc071..a3b7439010a 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -229,7 +229,6 @@ namespace { bool runOnMachineFunction(MachineFunction &MF) override; void getAnalysisUsage(AnalysisUsage &AU) const override { - AU.setPreservesCFG(); AU.addRequired<MachineDominatorTree>(); MachineFunctionPass::getAnalysisUsage(AU); } diff --git a/llvm/test/CodeGen/ARM/constant-islands-cfg.mir b/llvm/test/CodeGen/ARM/constant-islands-cfg.mir index add9e2003a5..32548dfe67e 100644 --- a/llvm/test/CodeGen/ARM/constant-islands-cfg.mir +++ b/llvm/test/CodeGen/ARM/constant-islands-cfg.mir @@ -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 { diff --git a/llvm/test/CodeGen/Thumb2/constant-islands.ll b/llvm/test/CodeGen/Thumb2/constant-islands.ll index 81a1f357e67..ac323adfd3f 100644 --- a/llvm/test/CodeGen/Thumb2/constant-islands.ll +++ b/llvm/test/CodeGen/Thumb2/constant-islands.ll @@ -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 |