[llvm] e79b1ab - Make test more flexible for when the variable is renamed in the generated LLVM IR. [NFC]
Douglas Yung via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 23 22:18:43 PDT 2020
Author: Douglas Yung
Date: 2020-03-23T22:03:21-07:00
New Revision: e79b1ab65b8d4d780f824d138a8f597aed9be766
URL: https://github.com/llvm/llvm-project/commit/e79b1ab65b8d4d780f824d138a8f597aed9be766
DIFF: https://github.com/llvm/llvm-project/commit/e79b1ab65b8d4d780f824d138a8f597aed9be766.diff
LOG: Make test more flexible for when the variable is renamed in the generated LLVM IR. [NFC]
Added:
Modified:
llvm/test/Transforms/GVNSink/sink-common-code.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/GVNSink/sink-common-code.ll b/llvm/test/Transforms/GVNSink/sink-common-code.ll
index 160bbd370ff5..124f51a16917 100644
--- a/llvm/test/Transforms/GVNSink/sink-common-code.ll
+++ b/llvm/test/Transforms/GVNSink/sink-common-code.ll
@@ -717,8 +717,8 @@ if.end:
; CHECK-LABEL: @common_addrspacecast(
; CHECK: %. = select i1 %flag, i32 9, i32 10
-; CHECK: %a = addrspacecast i32* %x to i32 addrspace(1)*
-; CHECK: store i32 %., i32 addrspace(1)* %a
+; CHECK: %[[a:.*]] = addrspacecast i32* %x to i32 addrspace(1)*
+; CHECK: store i32 %., i32 addrspace(1)* %[[a]]
define i32 @common_addrspacecast(i1 zeroext %flag, i32* %x) {
entry:
br i1 %flag, label %if.then, label %if.else
More information about the llvm-commits
mailing list