Another step towards getting rid of dependencies to the legacy pass manager. Primary change here is to just do -passes=foo instead of -foo in simple situations (when running a single transform pass). But also updated a few test running multiple passes. Also removed some "duplicated" RUN lines in a few tests that where using both -foo and -passes=foo syntax. No need to do the same kind of testing twice.
11 lines
202 B
LLVM
11 lines
202 B
LLVM
; RUN: opt < %s -passes=reassociate -S | FileCheck %s
|
|
|
|
define i32 @test1(i32 %A) {
|
|
; CHECK-LABEL: test1
|
|
; CHECK: ret i32 0
|
|
%X = add i32 %A, 1
|
|
%Y = add i32 %A, 1
|
|
%r = sub i32 %X, %Y
|
|
ret i32 %r
|
|
}
|