Skip to content

Commit 0dc13d7

Browse files
committed
Implement _mm_prefetch as nop
1 parent f69c2e7 commit 0dc13d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/intrinsics/llvm.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
3535
}
3636

3737
match intrinsic {
38+
"llvm.prefetch" => {
39+
// Nothing to do. This is merely a perf hint.
40+
}
41+
3842
_ if intrinsic.starts_with("llvm.ctlz.v") => {
3943
intrinsic_args!(fx, args => (a); intrinsic);
4044

0 commit comments

Comments
 (0)