mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
98e0298cb2
This patch fixes PR41523 https://bugs.llvm.org/show_bug.cgi?id=41523 Regions can now nest/overlap provided that they have different names. Anonymous regions cannot overlap. Region end markers must specify the region name. The only exception is for when there is only one user-defined region; in that particular case, the region end marker doesn't need to specify a name. Incorrect region end markers are no longer ignored. Instead, the tool reports an error and we exit with an error code. Added test cases to verify the new diagnostic error messages. Updated the llvm-mca docs to reflect this feature change. Differential Revision: https://reviews.llvm.org/D61676 llvm-svn: 360351
14 lines
446 B
ArmAsm
14 lines
446 B
ArmAsm
# RUN: not llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 %s 2>&1 | FileCheck %s
|
|
|
|
# LLVM-MCA-BEGIN foo
|
|
add %eax, %eax
|
|
# LLVM-MCA-BEGIN foo
|
|
add %eax, %eax
|
|
|
|
# CHECK: llvm-mca-markers-11.s:5:2: error: overlapping regions cannot have the same name
|
|
# CHECK-NEXT: # LLVM-MCA-BEGIN foo
|
|
# CHECK-NEXT: ^
|
|
# CHECK-NEXT: llvm-mca-markers-11.s:3:2: note: region foo was previously defined here
|
|
# CHECK-NEXT: # LLVM-MCA-BEGIN foo
|
|
# CHECK-NEXT: ^
|