[PATCH] D159266: [BOLT] Provide generic implementations for isLoad/isStore
Vladislav Khmelevsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 04:19:31 PDT 2023
yota9 added inline comments.
================
Comment at: bolt/include/bolt/Core/MCPlusBuilder.h:617
virtual bool isLoad(const MCInst &Inst) const {
- llvm_unreachable("not implemented");
- return false;
+ return Info->get(Inst.getOpcode()).mayLoad();
}
----------------
I'm not completely sure, but shouldn't we check here that we may not store here? E.g. atomic instructions seems would return both true for store and load and the current logic is designed here to handle load-only instructions. What do you think?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159266/new/
https://reviews.llvm.org/D159266
More information about the llvm-commits
mailing list