Skip to content

Commit 3490e04

Browse files
committed
Remove cargo cult attribute; test for no DCE at O2
1 parent 397f673 commit 3490e04

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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-
[IntrHasSideEffects, IntrInaccessibleMemOnly, IntrWillReturn]>;
1906+
[IntrNoMem]>;
19071907

19081908
//===---------------- Vector Predication Intrinsics --------------===//
19091909
// Memory Intrinsics

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

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

34
; CHECK: .reloc {{.*}}, BFD_RELOC_NONE, foo
45

0 commit comments

Comments
 (0)