[llvm] [AMDGPU] Eliminate redundant s_round_mode writes (PR #216305)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 14 17:59:50 PDT 2026
================
@@ -792,6 +861,10 @@ bool SIPreEmitPeephole::run(MachineFunction &MF, MachineLoopInfo *LoopInfo) {
MF.RenumberBlocks();
+ for (MachineBasicBlock &MBB : MF) {
+ Changed |= removeRedundantRoundMode(MBB);
+ }
----------------
shiltian wrote:
Can we merge it to the for loop below?
https://github.com/llvm/llvm-project/pull/216305
More information about the llvm-commits
mailing list