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/optimize-max-1.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/optimize-max-1.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/optimize-max-1.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/X86/optimize-max-1.ll b/llvm/test/CodeGen/X86/optimize-max-1.ll index 08cb86ab398..aa560c4ecad 100644 --- a/llvm/test/CodeGen/X86/optimize-max-1.ll +++ b/llvm/test/CodeGen/X86/optimize-max-1.ll @@ -8,7 +8,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3 define void @fs(double* nocapture %p, i64 %n) nounwind { ; CHECK-LABEL: fs: -; CHECK: # BB#0: # %entry +; CHECK: # %bb.0: # %entry ; CHECK-NEXT: xorl %eax, %eax ; CHECK-NEXT: .p2align 4, 0x90 ; CHECK-NEXT: .LBB0_1: # %bb @@ -17,7 +17,7 @@ define void @fs(double* nocapture %p, i64 %n) nounwind { ; CHECK-NEXT: incq %rax ; CHECK-NEXT: cmpq %rsi, %rax ; CHECK-NEXT: jl .LBB0_1 -; CHECK-NEXT: # BB#2: # %return +; CHECK-NEXT: # %bb.2: # %return ; CHECK-NEXT: retq entry: %tmp = icmp slt i64 %n, 1 ; <i1> [#uses=1] @@ -38,7 +38,7 @@ return: ; preds = %bb define void @bs(double* nocapture %p, i64 %n) nounwind { ; CHECK-LABEL: bs: -; CHECK: # BB#0: # %entry +; CHECK: # %bb.0: # %entry ; CHECK-NEXT: xorl %eax, %eax ; CHECK-NEXT: .p2align 4, 0x90 ; CHECK-NEXT: .LBB1_1: # %bb @@ -47,7 +47,7 @@ define void @bs(double* nocapture %p, i64 %n) nounwind { ; CHECK-NEXT: incq %rax ; CHECK-NEXT: cmpq %rsi, %rax ; CHECK-NEXT: jl .LBB1_1 -; CHECK-NEXT: # BB#2: # %return +; CHECK-NEXT: # %bb.2: # %return ; CHECK-NEXT: retq entry: %tmp = icmp sge i64 %n, 1 ; <i1> [#uses=1] @@ -68,7 +68,7 @@ return: ; preds = %bb define void @fu(double* nocapture %p, i64 %n) nounwind { ; CHECK-LABEL: fu: -; CHECK: # BB#0: # %entry +; CHECK: # %bb.0: # %entry ; CHECK-NEXT: xorl %eax, %eax ; CHECK-NEXT: .p2align 4, 0x90 ; CHECK-NEXT: .LBB2_1: # %bb @@ -77,7 +77,7 @@ define void @fu(double* nocapture %p, i64 %n) nounwind { ; CHECK-NEXT: incq %rax ; CHECK-NEXT: cmpq %rsi, %rax ; CHECK-NEXT: jb .LBB2_1 -; CHECK-NEXT: # BB#2: # %return +; CHECK-NEXT: # %bb.2: # %return ; CHECK-NEXT: retq entry: %tmp = icmp eq i64 %n, 0 ; <i1> [#uses=1] @@ -98,7 +98,7 @@ return: ; preds = %bb define void @bu(double* nocapture %p, i64 %n) nounwind { ; CHECK-LABEL: bu: -; CHECK: # BB#0: # %entry +; CHECK: # %bb.0: # %entry ; CHECK-NEXT: xorl %eax, %eax ; CHECK-NEXT: .p2align 4, 0x90 ; CHECK-NEXT: .LBB3_1: # %bb @@ -107,7 +107,7 @@ define void @bu(double* nocapture %p, i64 %n) nounwind { ; CHECK-NEXT: incq %rax ; CHECK-NEXT: cmpq %rsi, %rax ; CHECK-NEXT: jb .LBB3_1 -; CHECK-NEXT: # BB#2: # %return +; CHECK-NEXT: # %bb.2: # %return ; CHECK-NEXT: retq entry: %tmp = icmp ne i64 %n, 0 ; <i1> [#uses=1] |

