[llvm] 3dd2db0 - [MergeFunc] Add another test for incorrect constexpr merging (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 20 05:53:34 PST 2023
Author: Nikita Popov
Date: 2023-12-20T14:53:25+01:00
New Revision: 3dd2db08a2b30618e21f165cf094de421dc32c00
URL: https://github.com/llvm/llvm-project/commit/3dd2db08a2b30618e21f165cf094de421dc32c00
DIFF: https://github.com/llvm/llvm-project/commit/3dd2db08a2b30618e21f165cf094de421dc32c00.diff
LOG: [MergeFunc] Add another test for incorrect constexpr merging (NFC)
Looks like we don't even check the opcode :(
Added:
Modified:
llvm/test/Transforms/MergeFunc/constexpr.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/MergeFunc/constexpr.ll b/llvm/test/Transforms/MergeFunc/constexpr.ll
index 9997c5c8efa4a3..9999caf100dc94 100644
--- a/llvm/test/Transforms/MergeFunc/constexpr.ll
+++ b/llvm/test/Transforms/MergeFunc/constexpr.ll
@@ -11,6 +11,7 @@
; CHECK: @f4 = unnamed_addr alias ptr (), ptr @f3
; CHECK: @f5 = unnamed_addr alias ptr (), ptr @f3
; CHECK: @f7 = unnamed_addr alias i64 (), ptr @f6
+; CHECK: @f8 = unnamed_addr alias i64 (), ptr @f6
;.
define i1 @f1() unnamed_addr {
; CHECK-LABEL: define i1 @f1() unnamed_addr {
@@ -48,3 +49,7 @@ define i64 @f6() unnamed_addr {
define i64 @f7() unnamed_addr {
ret i64 add (i64 ptrtoint (ptr @g1 to i64), i64 1)
}
+
+define i64 @f8() unnamed_addr {
+ ret i64 sub (i64 ptrtoint (ptr @g1 to i64), i64 1)
+}
More information about the llvm-commits
mailing list