[llvm-branch-commits] [llvm] PPC: Fix extsw elimination when the input reads a subregister (PR #208052)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Sep 20 02:14:10 PDT 2026
================
@@ -1012,11 +1012,13 @@ bool PPCMIPeephole::simplifyCode() {
if (!NarrowReg.isVirtual())
break;
+ unsigned NarrowSubReg = MI.getOperand(1).getSubReg();
----------------
arsenm wrote:
The last revision had a NarrowSubReg check on the SrcOpcode if before, but it was removed
https://github.com/llvm/llvm-project/pull/208052
More information about the llvm-branch-commits
mailing list