[llvm] [RISCV] Remove unneeded zext.h instructions (PR #225960)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 07:04:50 PDT 2026
================
@@ -1016,7 +1021,7 @@ bool TypePromotionImpl::run(Function &F, const TargetMachine *TM,
<< "register for ZExt type\n");
continue;
}
- MadeChange |= TryToPromote(Phi, PromoteWidth, LI);
+ MadeChange |= TryToPromote(Phi, PromoteWidth, LI, UseSExt);
----------------
bbbill42 wrote:
I added an escape for that, for SExt + UDiv/URem/LShr in isPromotedResuultSafe():418
https://github.com/llvm/llvm-project/pull/225960
More information about the llvm-commits
mailing list