[PATCH] D136157: [X86][2/2] Support PREFETCHI instructions
LuoYuanke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 05:09:06 PDT 2022
LuoYuanke 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) {
----------------
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?
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