Skip to content

Commit 047b443

Browse files
committed
Add side effect tag, since opt (not llc) will strip reloc_none
1 parent 54fb67a commit 047b443

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

llvm/include/llvm/IR/Intrinsics.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ def int_stepvector : DefaultAttrsIntrinsic<[llvm_anyvector_ty],
19141914
[], [IntrNoMem]>;
19151915

19161916
def int_reloc_none : DefaultAttrsIntrinsic<[], [llvm_metadata_ty],
1917-
[IntrNoMem]>;
1917+
[IntrNoMem, IntrHasSideEffects]>;
19181918

19191919
//===---------------- Vector Predication Intrinsics --------------===//
19201920
// Memory Intrinsics

llvm/test/CodeGen/Generic/reloc-none.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
; RUN: llc < %s | FileCheck %s
2-
; RUN: llc -O2 < %s | FileCheck %s
32

43
; CHECK: .reloc {{.*}}, BFD_RELOC_NONE, foo
54

0 commit comments

Comments
 (0)