diff options
author | Tim Northover <tnorthover@apple.com> | 2019-08-03 14:28:34 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2019-08-03 14:28:34 +0000 |
commit | a009a60a917bc30940422bcef73f8270566d78db (patch) | |
tree | 585c11f151ecd35dd07677ae76c12aee922c9a7f /llvm/test/Transforms/MergeFunc/phi-check-blocks.ll | |
parent | 6bf861298a117f82f453021bc355a1fe38ca818b (diff) | |
download | bcm5719-llvm-a009a60a917bc30940422bcef73f8270566d78db.tar.gz bcm5719-llvm-a009a60a917bc30940422bcef73f8270566d78db.zip |
IR: print value numbers for unnamed function arguments
For consistency with normal instructions and clarity when reading IR,
it's best to print the %0, %1, ... names of function arguments in
definitions.
Also modifies the parser to accept IR in that form for obvious reasons.
llvm-svn: 367755
Diffstat (limited to 'llvm/test/Transforms/MergeFunc/phi-check-blocks.ll')
-rw-r--r-- | llvm/test/Transforms/MergeFunc/phi-check-blocks.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/MergeFunc/phi-check-blocks.ll b/llvm/test/Transforms/MergeFunc/phi-check-blocks.ll index b2de9a0c028..76f4491c29b 100644 --- a/llvm/test/Transforms/MergeFunc/phi-check-blocks.ll +++ b/llvm/test/Transforms/MergeFunc/phi-check-blocks.ll @@ -3,8 +3,8 @@ ; Ensure that we do not merge functions that are identical with the ; exception of the order of the incoming blocks to a phi. -; CHECK-LABEL: define linkonce_odr hidden i1 @first(i2) -define linkonce_odr hidden i1 @first(i2) { +; CHECK-LABEL: define linkonce_odr hidden i1 @first(i2 %0) +define linkonce_odr hidden i1 @first(i2 %0) { entry: ; CHECK: switch i2 switch i2 %0, label %default [ @@ -26,8 +26,8 @@ done: ret i1 %result } -; CHECK-LABEL: define linkonce_odr hidden i1 @second(i2) -define linkonce_odr hidden i1 @second(i2) { +; CHECK-LABEL: define linkonce_odr hidden i1 @second(i2 %0) +define linkonce_odr hidden i1 @second(i2 %0) { entry: ; CHECK: switch i2 switch i2 %0, label %default [ |