[llvm] r331476 - [PowerPC] add more FMF debug output; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu May 3 11:49:35 PDT 2018
Author: spatel
Date: Thu May 3 11:49:35 2018
New Revision: 331476
URL: http://llvm.org/viewvc/llvm-project?rev=331476&view=rev
Log:
[PowerPC] add more FMF debug output; NFC
We can't see all of the problems currently unless
we look at debug output when the global 'unsafe' is
on. It's a mess. This is another attempt to make
sure that D45710 is not making changes unintentionally.
Modified:
llvm/trunk/test/CodeGen/PowerPC/fmf-propagation.ll
Modified: llvm/trunk/test/CodeGen/PowerPC/fmf-propagation.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/fmf-propagation.ll?rev=331476&r1=331475&r2=331476&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/fmf-propagation.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/fmf-propagation.ll Thu May 3 11:49:35 2018
@@ -1,8 +1,9 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; REQUIRES: asserts
-; RUN: llc < %s -mtriple=powerpc64le -debug-only=isel -o /dev/null 2>&1 | FileCheck %s --check-prefix=FMFDEBUG
-; RUN: llc < %s -mtriple=powerpc64le | FileCheck %s --check-prefix=FMF
-; RUN: llc < %s -mtriple=powerpc64le -enable-unsafe-fp-math | FileCheck %s --check-prefix=GLOBAL
+; RUN: llc < %s -mtriple=powerpc64le -debug-only=isel -o /dev/null 2>&1 | FileCheck %s --check-prefix=FMFDEBUG
+; RUN: llc < %s -mtriple=powerpc64le | FileCheck %s --check-prefix=FMF
+; RUN: llc < %s -mtriple=powerpc64le -debug-only=isel -o /dev/null 2>&1 -enable-unsafe-fp-math | FileCheck %s --check-prefix=GLOBALDEBUG
+; RUN: llc < %s -mtriple=powerpc64le -enable-unsafe-fp-math | FileCheck %s --check-prefix=GLOBAL
; Test FP transforms using instruction/node-level fast-math-flags.
; We're also checking debug output to verify that FMF is propagated to the newly created nodes.
@@ -159,6 +160,10 @@ define float @fmul_fadd_fast2(float %x,
; FMFDEBUG: fma {{t[0-9]+}}
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_reassoc1:'
+; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'fmul_fma_reassoc1:'
+; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
+; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_reassoc1:'
+
define float @fmul_fma_reassoc1(float %x) {
; FMF-LABEL: fmul_fma_reassoc1:
; FMF: # %bb.0:
@@ -191,6 +196,10 @@ define float @fmul_fma_reassoc1(float %x
; FMFDEBUG: fma {{t[0-9]+}}
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_reassoc2:'
+; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'fmul_fma_reassoc2:'
+; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
+; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_reassoc2:'
+
define float @fmul_fma_reassoc2(float %x) {
; FMF-LABEL: fmul_fma_reassoc2:
; FMF: # %bb.0:
@@ -223,6 +232,10 @@ define float @fmul_fma_reassoc2(float %x
; FMFDEBUG: fma {{t[0-9]+}}
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_fast1:'
+; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'fmul_fma_fast1:'
+; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
+; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_fast1:'
+
define float @fmul_fma_fast1(float %x) {
; FMF-LABEL: fmul_fma_fast1:
; FMF: # %bb.0:
@@ -255,6 +268,10 @@ define float @fmul_fma_fast1(float %x) {
; FMFDEBUG: fma {{t[0-9]+}}
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_fast2:'
+; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'fmul_fma_fast2:'
+; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
+; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_fast2:'
+
define float @fmul_fma_fast2(float %x) {
; FMF-LABEL: fmul_fma_fast2:
; FMF: # %bb.0:
@@ -287,6 +304,10 @@ define float @fmul_fma_fast2(float %x) {
; FMFDEBUG: fsqrt {{t[0-9]+}}
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'sqrt_afn:'
+; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'sqrt_afn:'
+; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
+; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'sqrt_afn:'
+
define float @sqrt_afn(float %x) {
; FMF-LABEL: sqrt_afn:
; FMF: # %bb.0:
@@ -323,6 +344,10 @@ define float @sqrt_afn(float %x) {
; FMFDEBUG: fsqrt {{t[0-9]+}}
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'sqrt_fast:'
+; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'sqrt_fast:'
+; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
+; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'sqrt_fast:'
+
define float @sqrt_fast(float %x) {
; FMF-LABEL: sqrt_fast:
; FMF: # %bb.0:
More information about the llvm-commits
mailing list