You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
24
external/llvm/test/Transforms/CodeGenPrepare/invariant.group.ll
vendored
Normal file
24
external/llvm/test/Transforms/CodeGenPrepare/invariant.group.ll
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
; RUN: opt -codegenprepare -S < %s | FileCheck %s
|
||||
|
||||
@tmp = global i8 0
|
||||
|
||||
; CHECK-LABEL: define void @foo() {
|
||||
define void @foo() {
|
||||
enter:
|
||||
; CHECK-NOT: !invariant.group
|
||||
; CHECK-NOT: @llvm.invariant.group.barrier.p0i8(
|
||||
; CHECK: %val = load i8, i8* @tmp, !tbaa
|
||||
%val = load i8, i8* @tmp, !invariant.group !0, !tbaa !{!1, !1, i64 0}
|
||||
%ptr = call i8* @llvm.invariant.group.barrier.p0i8(i8* @tmp)
|
||||
|
||||
; CHECK: store i8 42, i8* @tmp
|
||||
store i8 42, i8* %ptr, !invariant.group !0
|
||||
|
||||
ret void
|
||||
}
|
||||
; CHECK-LABEL: }
|
||||
|
||||
declare i8* @llvm.invariant.group.barrier.p0i8(i8*)
|
||||
|
||||
!0 = !{!"something"}
|
||||
!1 = !{!"x", !0}
|
Reference in New Issue
Block a user