[llvm] r339683 - [InstCombine] regenerate checks; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 14 08:21:13 PDT 2018


Author: spatel
Date: Tue Aug 14 08:21:13 2018
New Revision: 339683

URL: http://llvm.org/viewvc/llvm-project?rev=339683&view=rev
Log:
[InstCombine] regenerate checks; NFC

Modified:
    llvm/trunk/test/Transforms/InstCombine/pow-2.ll
    llvm/trunk/test/Transforms/InstCombine/pow-exp-nofastmath.ll

Modified: llvm/trunk/test/Transforms/InstCombine/pow-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/pow-2.ll?rev=339683&r1=339682&r2=339683&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/pow-2.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/pow-2.ll Tue Aug 14 08:21:13 2018
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; Test that the pow library call simplifier works correctly.
 ;
 ; RUN: opt < %s -instcombine -S | FileCheck %s
@@ -8,7 +9,10 @@ declare float @pow(double, double)
 
 define float @test_no_simplify1(double %x) {
 ; CHECK-LABEL: @test_no_simplify1(
+; CHECK-NEXT:    [[RETVAL:%.*]] = call float @pow(double 1.000000e+00, double [[X:%.*]])
+; CHECK-NEXT:    ret float [[RETVAL]]
+;
   %retval = call float @pow(double 1.0, double %x)
-; CHECK-NEXT: call float @pow(double 1.000000e+00, double %x)
   ret float %retval
 }
+

Modified: llvm/trunk/test/Transforms/InstCombine/pow-exp-nofastmath.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/pow-exp-nofastmath.ll?rev=339683&r1=339682&r2=339683&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/pow-exp-nofastmath.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/pow-exp-nofastmath.ll Tue Aug 14 08:21:13 2018
@@ -1,17 +1,16 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; RUN: opt < %s -instcombine -S | FileCheck %s
 
-define double @mypow(double %x, double %y) #0 {
-entry:
+define double @mypow(double %x, double %y) {
+; CHECK-LABEL: @mypow(
+; CHECK-NEXT:    [[CALL:%.*]] = call double @exp(double [[X:%.*]])
+; CHECK-NEXT:    [[POW:%.*]] = call double @llvm.pow.f64(double [[CALL]], double [[Y:%.*]])
+; CHECK-NEXT:    ret double [[POW]]
+;
   %call = call double @exp(double %x)
   %pow = call double @llvm.pow.f64(double %call, double %y)
   ret double %pow
 }
 
-; CHECK-LABEL: define double @mypow(
-; CHECK:   %call = call double @exp(double %x)
-; CHECK:   %pow = call double @llvm.pow.f64(double %call, double %y)
-; CHECK:   ret double %pow
-; CHECK: }
-
 declare double @exp(double) #1
 declare double @llvm.pow.f64(double, double)




More information about the llvm-commits mailing list