[llvm] 81fa9ac - [GVNHoist] Make test more robust (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 27 03:44:54 PST 2022
Author: Nikita Popov
Date: 2022-12-27T12:44:17+01:00
New Revision: 81fa9ac9ed94945630565bb6be46f0e70b6fbe30
URL: https://github.com/llvm/llvm-project/commit/81fa9ac9ed94945630565bb6be46f0e70b6fbe30
DIFF: https://github.com/llvm/llvm-project/commit/81fa9ac9ed94945630565bb6be46f0e70b6fbe30.diff
LOG: [GVNHoist] Make test more robust (NFC)
Make sure these stores cannot be sunk, which might defeat the
intent of the test.
Added:
Modified:
llvm/test/Transforms/GVNHoist/hoist-inline.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/GVNHoist/hoist-inline.ll b/llvm/test/Transforms/GVNHoist/hoist-inline.ll
index 56378d136de55..cc59b93a32d08 100644
--- a/llvm/test/Transforms/GVNHoist/hoist-inline.ll
+++ b/llvm/test/Transforms/GVNHoist/hoist-inline.ll
@@ -9,6 +9,8 @@
@A = external global i32
@B = external global i32
@C = external global i32
+ at D = external global i32
+ at E = external global i32
define i32 @loadA() {
%a = load i32, i32* @A
@@ -26,9 +28,9 @@ if.then:
br label %if.endif
if.else:
- store i32 2, i32* @C
+ store i32 2, i32* @D
%call2 = call i32 @loadA()
- store i32 1, i32* @B
+ store i32 1, i32* @E
br label %if.endif
if.endif:
More information about the llvm-commits
mailing list