[PATCH] D136157: [X86][2/2] Support PREFETCHI instructions
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 05:23:39 PDT 2022
pengfei added inline comments.
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:36838
+ unsigned Opc =
+ MI.getOpcode() == X86::PREFETCHIT0 ? X86::PREFETCHT0 : X86::PREFETCHT1;
+ if (MI.getOperand(0).getReg() != X86::RIP) {
----------------
LuoYuanke wrote:
> It seems morph code prefetch to data prefetch. Does it help performance? I'm sure about the cache hierarchy. Which cache level is shared between code cache and data cache?
I assume data prefetch is better than nop. We also use data prefetch to replace when PREFETCHI is not available.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136157/new/
https://reviews.llvm.org/D136157
More information about the llvm-commits
mailing list