diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-04 17:18:51 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-04 17:18:51 +0000 |
| commit | 25528d6de70e98683722e28655d8568d5f09b5c7 (patch) | |
| tree | 061a9b3bfa623e3f38efd5fc02c6ec234acfcfde /llvm/test/CodeGen/X86/vec_logical.ll | |
| parent | 2b4385846c86078e0012e7bfb2e8dc6476ae8dd0 (diff) | |
| download | bcm5719-llvm-25528d6de70e98683722e28655d8568d5f09b5c7.tar.gz bcm5719-llvm-25528d6de70e98683722e28655d8568d5f09b5c7.zip | |
[CodeGen] Unify MBB reference format in both MIR and debug output
As part of the unification of the debug format and the MIR format, print
MBB references as '%bb.5'.
The MIR printer prints the IR name of a MBB only for block definitions.
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#" << ([a-zA-Z0-9_]+)->getNumber\(\)/" << printMBBReference(*\1)/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#" << ([a-zA-Z0-9_]+)\.getNumber\(\)/" << printMBBReference(\1)/g'
* find . \( -name "*.txt" -o -name "*.s" -o -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#([0-9]+)/%bb.\1/g'
* grep -nr 'BB#' and fix
Differential Revision: https://reviews.llvm.org/D40422
llvm-svn: 319665
Diffstat (limited to 'llvm/test/CodeGen/X86/vec_logical.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/vec_logical.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/X86/vec_logical.ll b/llvm/test/CodeGen/X86/vec_logical.ll index 92ec76009f6..ec29d4886a2 100644 --- a/llvm/test/CodeGen/X86/vec_logical.ll +++ b/llvm/test/CodeGen/X86/vec_logical.ll @@ -4,13 +4,13 @@ define void @t(<4 x float> %A) { ; SSE-LABEL: t: -; SSE: # BB#0: +; SSE: # %bb.0: ; SSE-NEXT: xorps {{\.LCPI.*}}, %xmm0 ; SSE-NEXT: movaps %xmm0, 0 ; SSE-NEXT: retl ; ; AVX-LABEL: t: -; AVX: # BB#0: +; AVX: # %bb.0: ; AVX-NEXT: vxorps {{\.LCPI.*}}, %xmm0, %xmm0 ; AVX-NEXT: vmovaps %xmm0, 0 ; AVX-NEXT: retl @@ -21,12 +21,12 @@ define void @t(<4 x float> %A) { define <4 x float> @t1(<4 x float> %a, <4 x float> %b) { ; SSE-LABEL: t1: -; SSE: # BB#0: # %entry +; SSE: # %bb.0: # %entry ; SSE-NEXT: xorps %xmm1, %xmm0 ; SSE-NEXT: retl ; ; AVX-LABEL: t1: -; AVX: # BB#0: # %entry +; AVX: # %bb.0: # %entry ; AVX-NEXT: vxorps %xmm1, %xmm0, %xmm0 ; AVX-NEXT: retl entry: @@ -39,12 +39,12 @@ entry: define <2 x double> @t2(<2 x double> %a, <2 x double> %b) { ; SSE-LABEL: t2: -; SSE: # BB#0: # %entry +; SSE: # %bb.0: # %entry ; SSE-NEXT: andps %xmm1, %xmm0 ; SSE-NEXT: retl ; ; AVX-LABEL: t2: -; AVX: # BB#0: # %entry +; AVX: # %bb.0: # %entry ; AVX-NEXT: vandps %xmm1, %xmm0, %xmm0 ; AVX-NEXT: retl entry: @@ -57,7 +57,7 @@ entry: define void @t3(<4 x float> %a, <4 x float> %b, <4 x float>* %c, <4 x float>* %d) { ; SSE-LABEL: t3: -; SSE: # BB#0: # %entry +; SSE: # %bb.0: # %entry ; SSE-NEXT: movl {{[0-9]+}}(%esp), %eax ; SSE-NEXT: movl {{[0-9]+}}(%esp), %ecx ; SSE-NEXT: andnps %xmm1, %xmm0 @@ -66,7 +66,7 @@ define void @t3(<4 x float> %a, <4 x float> %b, <4 x float>* %c, <4 x float>* %d ; SSE-NEXT: retl ; ; AVX-LABEL: t3: -; AVX: # BB#0: # %entry +; AVX: # %bb.0: # %entry ; AVX-NEXT: movl {{[0-9]+}}(%esp), %eax ; AVX-NEXT: movl {{[0-9]+}}(%esp), %ecx ; AVX-NEXT: vandnps %xmm1, %xmm0, %xmm0 @@ -88,13 +88,13 @@ entry: define <2 x i64> @andn_double_xor(<2 x i64> %a, <2 x i64> %b, <2 x i64> %c) { ; SSE-LABEL: andn_double_xor: -; SSE: # BB#0: +; SSE: # %bb.0: ; SSE-NEXT: xorps %xmm2, %xmm1 ; SSE-NEXT: andnps %xmm1, %xmm0 ; SSE-NEXT: retl ; ; AVX-LABEL: andn_double_xor: -; AVX: # BB#0: +; AVX: # %bb.0: ; AVX-NEXT: vxorps %xmm2, %xmm1, %xmm1 ; AVX-NEXT: vandnps %xmm1, %xmm0, %xmm0 ; AVX-NEXT: retl |

