Implement _mm_prefetch as nop

This commit is contained in:
bjorn3 2024-01-09 14:16:09 +01:00 committed by bjorn3
parent f69c2e768f
commit 0dc13d7acb

View File

@ -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);