From: Sanjay Patel Date: Thu, 3 May 2018 18:49:35 +0000 (+0000) Subject: [PowerPC] add more FMF debug output; NFC X-Git-Tag: llvmorg-7.0.0-rc1~6818 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52151885e4b711b87bdb948fc0b0f968ff269b37;p=platform%2Fupstream%2Fllvm.git [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. llvm-svn: 331476 --- diff --git a/llvm/test/CodeGen/PowerPC/fmf-propagation.ll b/llvm/test/CodeGen/PowerPC/fmf-propagation.ll index 21d367a..03b6a0b 100644 --- a/llvm/test/CodeGen/PowerPC/fmf-propagation.ll +++ b/llvm/test/CodeGen/PowerPC/fmf-propagation.ll @@ -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, float %y, float %z) { ; 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: