[llvm] 4ba50a7 - Update test to consider incompatible align attribute

Anna Thomas via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 07:50:43 PST 2023


Author: Anna Thomas
Date: 2023-11-10T10:50:35-05:00
New Revision: 4ba50a783b4d6cbfc93d989e4d2bdfe4e4726e4a

URL: https://github.com/llvm/llvm-project/commit/4ba50a783b4d6cbfc93d989e4d2bdfe4e4726e4a
DIFF: https://github.com/llvm/llvm-project/commit/4ba50a783b4d6cbfc93d989e4d2bdfe4e4726e4a.diff

LOG: Update test to consider incompatible align attribute

Added: 
    

Modified: 
    llvm/test/Transforms/Inline/pr64804.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/Inline/pr64804.ll b/llvm/test/Transforms/Inline/pr64804.ll
index 2802fee3af1c06b..190f57eaefce2d8 100644
--- a/llvm/test/Transforms/Inline/pr64804.ll
+++ b/llvm/test/Transforms/Inline/pr64804.ll
@@ -2,7 +2,7 @@
 
 declare ptr @llvm.experimental.deoptimize.p0(...)
 
-; Make sure we do not add incompatible attribute (noalias) to the deoptimize call.
+; Make sure we do not add incompatible attributes (noalias, align) to the deoptimize call.
 
 define ptr @callee_noalias(ptr %c) {
   %v2 = call ptr (...) @llvm.experimental.deoptimize.p0(i32 42 ) [ "deopt"(i32 1) ]
@@ -13,6 +13,6 @@ define ptr @callee_noalias(ptr %c) {
 ; CHECK: call void (...) @llvm.experimental.deoptimize.isVoid(i32 42) [ "deopt"(i32 2, i32 1) ]
 define void @caller_noalias(ptr %c) {
 entry:
-  %v = call noalias ptr @callee_noalias(ptr %c)  [ "deopt"(i32 2) ]
+  %v = call noalias align 8 ptr @callee_noalias(ptr %c)  [ "deopt"(i32 2) ]
   ret void
 }


        


More information about the llvm-commits mailing list