[Mlir-commits] [mlir] [mlir][LLVM] Add !invariant.load metadata support to llvm.load (PR #76754)
Krzysztof Drewniak
llvmlistbot at llvm.org
Wed Jan 3 08:21:43 PST 2024
================
@@ -370,6 +370,19 @@ define void @load_store(ptr %ptr) {
; // -----
+; CHECK-LABEL: @invariant_load
+; CHECK-SAME: %[[PTR:[a-zA-Z0-9]+]]
+define float @invariant_load(ptr %ptr) {
+ ; CHECK: %[[V:[0-9]+]] = llvm.load %[[PTR]] {alignment = 4 : i64, invariantLoad} : !llvm.ptr -> f32
----------------
krzysz00 wrote:
Good point, will do
https://github.com/llvm/llvm-project/pull/76754
More information about the Mlir-commits
mailing list