[PATCH] D85366: [RISCV] Disparage CSR instructions
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 02:28:40 PDT 2020
asb added a comment.
The description of `isNotDuplicable` in MachineInstr.h is:
/// Return true if this instruction cannot be safely duplicated.
/// For example, if the instruction has a unique labels attached
/// to it, duplicating it would cause multiple definition errors.
bool isNotDuplicable(QueryType Type = AnyInBundle) const {
return hasProperty(MCID::NotDuplicable, Type);
}
I don't think this obviously applies to CSRs, and the property doesn't seem to be applied to instructions that modify control registers for other in-tree targets.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85366/new/
https://reviews.llvm.org/D85366
More information about the llvm-commits
mailing list