I've stumbled upon this code while trying to remove the following deprecated function
inline SDValue SelectionDAG::getLoad(EVT VT, const SDLoc &dl, SDValue Chain, SDValue Ptr,
MachinePointerInfo PtrInfo, unsigned Alignment,
MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone,
const AAMDNodes &AAInfo = AAMDNodes(),
const MDNode *Ranges = nullptr);I don't know if the current behavior is expected or not so the fix may change.
I'd just fold it into the call itself.
SDValue P = DAG.getLoad(VecVT, dl, Root, VecAddr, MachinePointerInfo(srcValue), MaybeAlign(aggregateIsPacked ? 1 : 0),