}
void CodeGenPrepare::stripInvariantGroupMetadata(Instruction &I) {
- if (auto *InvariantMD = I.getMetadata(LLVMContext::MD_invariant_group))
- I.dropUnknownNonDebugMetadata(InvariantMD->getMetadataID());
+ I.setMetadata(LLVMContext::MD_invariant_group, nullptr);
}
enter:
; CHECK-NOT: !invariant.group
; CHECK-NOT: @llvm.invariant.group.barrier(
- ; CHECK: %val = load i8, i8* @tmp
- %val = load i8, i8* @tmp, !invariant.group !0
+ ; 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(i8* @tmp)
; CHECK: store i8 42, i8* @tmp
declare i8* @llvm.invariant.group.barrier(i8*)
-!0 = !{!"something"}
\ No newline at end of file
+!0 = !{!"something"}
+!1 = !{!"x", !0}