Skip to content

Commit 0ca07a8

Browse files
committed
Add side effect tag, since opt (not llc) will strip reloc_none
1 parent 822f240 commit 0ca07a8

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
@@ -1903,7 +1903,7 @@ def int_stepvector : DefaultAttrsIntrinsic<[llvm_anyvector_ty],
19031903
[], [IntrNoMem]>;
19041904

19051905
def int_reloc_none : DefaultAttrsIntrinsic<[], [llvm_metadata_ty],
1906-
[IntrNoMem]>;
1906+
[IntrNoMem, IntrHasSideEffects]>;
19071907

19081908
//===---------------- Vector Predication Intrinsics --------------===//
19091909
// 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)