[llvm] [RISCV] Implement foward inserting save/restore FRM instructions. (PR #77744)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 10:14:57 PST 2024
================
@@ -99,8 +181,12 @@ bool RISCVInsertReadWriteCSR::runOnMachineFunction(MachineFunction &MF) {
bool Changed = false;
- for (MachineBasicBlock &MBB : MF)
- Changed |= emitWriteRoundingMode(MBB);
+ for (MachineBasicBlock &MBB : MF) {
+ if (DisableFRMInsertOpt)
+ Changed |= emitWriteRoundingMode(MBB);
----------------
topperc wrote:
No test coverage for the unoptimized version.
https://github.com/llvm/llvm-project/pull/77744
More information about the llvm-commits
mailing list