[llvm] [SelectionDAG] Salvage debuginfo when combining load and z|s ext instrs. (PR #188544)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 00:58:55 PDT 2026
================
@@ -14795,6 +14801,9 @@ static SDValue tryToFoldExtOfLoad(SelectionDAG &DAG, DAGCombiner &Combiner,
ISD::LoadExtType ExtLoadType,
ISD::NodeType ExtOpc,
bool NonNegZExt = false) {
+ unsigned Opcode_N = N->getOpcode();
+ bool IsSigned = Opcode_N == ISD::SIGN_EXTEND;
----------------
OCHyams wrote:
nit: Can we sink this bit of code closer to its uses?
https://github.com/llvm/llvm-project/pull/188544
More information about the llvm-commits
mailing list