
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.
20 lines
445 B
LLVM
20 lines
445 B
LLVM
; RUN: opt -passes=reassociate -S < %s | FileCheck %s
|
|
|
|
declare void @use(float)
|
|
|
|
define void @test1(float %x, float %y) {
|
|
; CHECK-LABEL: test1
|
|
; CHECK: fmul float %x, %y
|
|
; CHECK: fmul float %x, %y
|
|
; CHECK: fsub float %1, %2
|
|
; CHECK: call void @use(float %{{.*}})
|
|
; CHECK: call void @use(float %{{.*}})
|
|
|
|
%1 = fmul float %x, %y
|
|
%2 = fmul float %y, %x
|
|
%3 = fsub float %1, %2
|
|
call void @use(float %1)
|
|
call void @use(float %3)
|
|
ret void
|
|
}
|