Files
clang-p2996/llvm/test/Transforms/ADCE/blocks-with-dead-term-nondeterministic.ll
Bjorn Pettersson 3f8027fb67 [test] Update some test cases to use -passes when specifying the pipeline
This updates transform test cases for
  ADCE
  AddDiscriminators
  AggressiveInstCombine
  AlignmentFromAssumptions
  ArgumentPromotion
  BDCE
  CalledValuePropagation
  DCE
  Reg2Mem
  WholeProgramDevirt
to use the -passes syntax when specifying the pipeline.

Given that LLVM_ENABLE_NEW_PASS_MANAGER isn't set to off (which is
a deprecated feature) the updated test cases already used the new
pass manager, but they were using the legacy syntax when specifying
the passes to run. This patch can be seen as a step toward deprecating
that interface.

This patch also removes some redundant RUN lines. Here I am
referring to test cases that had multiple RUN lines verifying both
the legacy "-passname" syntax and the new "-passes=passname" syntax.
Since we switched the default pass manager to "new PM" both RUN lines
have verified the new PM version of the pass (more or less wasting
time running the same test twice), unless LLVM_ENABLE_NEW_PASS_MANAGER
is set to "off". It is assumed that it is enough to run these tests
with the new pass manager now.

Differential Revision: https://reviews.llvm.org/D108472
2021-09-29 21:51:08 +02:00

72 lines
2.5 KiB
LLVM

; RUN: opt < %s -passes=adce --preserve-ll-uselistorder -S | FileCheck %s
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.10.0"
; CHECK: uselistorder label %bb16, { 1, 0 }
; Function Attrs: noinline nounwind ssp uwtable
define void @ham() local_unnamed_addr #0 {
bb:
br i1 false, label %bb1, label %bb22
bb1: ; preds = %bb
br i1 undef, label %bb2, label %bb20
bb2: ; preds = %bb1
br label %bb5
bb5: ; preds = %bb16, %bb2
br i1 undef, label %bb6, label %bb17
bb6: ; preds = %bb5
br i1 undef, label %bb7, label %bb16
bb7: ; preds = %bb6
br i1 undef, label %bb9, label %bb8
bb8: ; preds = %bb7
br i1 undef, label %bb9, label %bb10
bb9: ; preds = %bb8, %bb7
br label %bb13
bb10: ; preds = %bb8
br label %bb12
bb12: ; preds = %bb10
br label %bb13
bb13: ; preds = %bb12, %bb9
br label %bb14
bb14: ; preds = %bb13
br label %bb15
bb15: ; preds = %bb14
br label %bb16
bb16: ; preds = %bb15, %bb6
br label %bb5
bb17: ; preds = %bb5
br label %bb19
bb19: ; preds = %bb17
br label %bb21
bb20: ; preds = %bb1
br label %bb21
bb21: ; preds = %bb20, %bb19
br label %bb22
bb22: ; preds = %bb21, %bb
ret void
}
attributes #0 = { noinline nounwind ssp uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
!llvm.module.flags = !{!0}
!0 = !{i32 7, !"PIC Level", i32 2}