[llvm] r317810 - revert r317809 - [Reassociate] regenerate test checks; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 9 08:46:04 PST 2017
Author: spatel
Date: Thu Nov 9 08:46:04 2017
New Revision: 317810
URL: http://llvm.org/viewvc/llvm-project?rev=317810&view=rev
Log:
revert r317809 - [Reassociate] regenerate test checks; NFC
The reassociate pass generates named values such as "%tmp2" which trips up the script's regex's
because the script uses a 'TMP' prefix for unnamed values (%2).
Modified:
llvm/trunk/test/Transforms/Reassociate/factorize-again.ll
Modified: llvm/trunk/test/Transforms/Reassociate/factorize-again.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Reassociate/factorize-again.ll?rev=317810&r1=317809&r2=317810&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Reassociate/factorize-again.ll (original)
+++ llvm/trunk/test/Transforms/Reassociate/factorize-again.ll Thu Nov 9 08:46:04 2017
@@ -1,20 +1,10 @@
; RUN: opt -S -reassociate < %s | FileCheck %s
+; CHECK-LABEL: main
+; CHECK: %2 = fsub
+; CHECK: %3 = fsub
+; CHECK: fadd fast float %3, %2
define void @main(float, float) {
-; CHECK-LABEL: @main(
-; CHECK-NEXT: wrapper_entry:
-; CHECK-NEXT: [[TMP2:%.*]] = fsub float undef, %0
-; CHECK-NEXT: [[TMP3:%.*]] = fsub float undef, %1
-; CHECK-NEXT: [[TMP4:%.*]] = call float @llvm.rsqrt.f32(float undef)
-; CHECK-NEXT: [[TMP3:%.*]] = fadd fast float [[TMP3]], [[TMP2]]
-; CHECK-NEXT: [[TMP4:%.*]] = fmul fast float [[TMP3]], undef
-; CHECK-NEXT: [[TMP1:%.*]] = fadd fast float [[TMP4]], fmul (float undef, float undef)
-; CHECK-NEXT: [[TMP2:%.*]] = fmul fast float [[TMP1]], [[TMP4]]
-; CHECK-NEXT: [[TMP5:%.*]] = call float @foo2(float [[TMP2]], float 0.000000e+00)
-; CHECK-NEXT: [[MUL36:%.*]] = fmul fast float [[TMP5]], 1.500000e+00
-; CHECK-NEXT: call void @foo1(i32 4, float [[MUL36]])
-; CHECK-NEXT: ret void
-;
wrapper_entry:
%2 = fsub float undef, %0
%3 = fsub float undef, %1
More information about the llvm-commits
mailing list