[llvm] X86: Fix convertToThreeAddress losing subregister indexes (PR #124098)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 03:22:19 PST 2025


================
@@ -1189,6 +1192,7 @@ bool X86InstrInfo::classifyLEAReg(MachineInstr &MI, const MachineOperand &Src,
     ImplicitOp.setImplicit();
 
     NewSrc = getX86SubSuperRegister(SrcReg, 64);
+    assert(!SubReg);
----------------
RKSimon wrote:

(style) assert message

https://github.com/llvm/llvm-project/pull/124098


More information about the llvm-commits mailing list