[llvm] a818693 - [X86] Use correct MachineMemOperand for stack load in LowerFLT_ROUNDS_
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 26 14:47:34 PST 2020
Author: Craig Topper
Date: 2020-02-26T14:45:38-08:00
New Revision: a8186935aea67e7a3041b83a50a83073a866e936
URL: https://github.com/llvm/llvm-project/commit/a8186935aea67e7a3041b83a50a83073a866e936
DIFF: https://github.com/llvm/llvm-project/commit/a8186935aea67e7a3041b83a50a83073a866e936.diff
LOG: [X86] Use correct MachineMemOperand for stack load in LowerFLT_ROUNDS_
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index bbfa29dd31ed..ea1499b65672 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -25643,18 +25643,16 @@ SDValue X86TargetLowering::LowerFLT_ROUNDS_(SDValue Op,
SDValue StackSlot =
DAG.getFrameIndex(SSFI, getPointerTy(DAG.getDataLayout()));
- MachineMemOperand *MMO =
- MF.getMachineMemOperand(MachinePointerInfo::getFixedStack(MF, SSFI),
- MachineMemOperand::MOStore, 2, 2);
+ MachinePointerInfo MPI = MachinePointerInfo::getFixedStack(MF, SSFI);
SDValue Chain = Op.getOperand(0);
SDValue Ops[] = {Chain, StackSlot};
- Chain = DAG.getMemIntrinsicNode(
- X86ISD::FNSTCW16m, DL, DAG.getVTList(MVT::Other), Ops, MVT::i16, MMO);
+ Chain = DAG.getMemIntrinsicNode(X86ISD::FNSTCW16m, DL,
+ DAG.getVTList(MVT::Other), Ops, MVT::i16, MPI,
+ 2 /*Align*/, MachineMemOperand::MOStore);
// Load FP Control Word from stack slot
- SDValue CWD =
- DAG.getLoad(MVT::i16, DL, Chain, StackSlot, MachinePointerInfo());
+ SDValue CWD = DAG.getLoad(MVT::i16, DL, Chain, StackSlot, MPI, 2 /*Align*/);
Chain = CWD.getValue(1);
// Mask and turn the control bits into a shift for the lookup table.
More information about the llvm-commits
mailing list