Skip to content

Commit

Permalink
Implement _mm_prefetch as nop
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jan 9, 2024
1 parent f69c2e7 commit 0dc13d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/intrinsics/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
}

match intrinsic {
"llvm.prefetch" => {
// Nothing to do. This is merely a perf hint.
}

_ if intrinsic.starts_with("llvm.ctlz.v") => {
intrinsic_args!(fx, args => (a); intrinsic);

Expand Down

0 comments on commit 0dc13d7

Please sign in to comment.