
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.
15 lines
501 B
LLVM
15 lines
501 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -passes=reassociate -S | FileCheck %s
|
|
|
|
define double @func(double %a, double %b) {
|
|
; CHECK-LABEL: @func(
|
|
; CHECK-NEXT: [[TMP1:%.*]] = fmul fast double [[B:%.*]], [[A:%.*]]
|
|
; CHECK-NEXT: [[TMP2:%.*]] = fmul fast double [[TMP1]], [[TMP1]]
|
|
; CHECK-NEXT: ret double [[TMP2]]
|
|
;
|
|
%mul1 = fmul fast double %a, %a
|
|
%mul2 = fmul fast double %b, %b
|
|
%mul3 = fmul fast double %mul1, %mul2
|
|
ret double %mul3
|
|
}
|