File tree 1 file changed +2
-12
lines changed
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -1058,12 +1058,7 @@ void X86DAGToDAGISel::PreprocessISelDAG() {
1058
1058
// Here we could have an FP stack truncation or an FPStack <-> SSE convert.
1059
1059
// FPStack has extload and truncstore. SSE can fold direct loads into other
1060
1060
// operations. Based on this, decide what we want to do.
1061
- MVT MemVT;
1062
- if (N->getOpcode () == ISD::FP_ROUND)
1063
- MemVT = DstVT; // FP_ROUND must use DstVT, we can't do a 'trunc load'.
1064
- else
1065
- MemVT = SrcIsSSE ? SrcVT : DstVT;
1066
-
1061
+ MVT MemVT = (N->getOpcode () == ISD::FP_ROUND) ? DstVT : SrcVT;
1067
1062
SDValue MemTmp = CurDAG->CreateStackTemporary (MemVT);
1068
1063
SDLoc dl (N);
1069
1064
@@ -1116,12 +1111,7 @@ void X86DAGToDAGISel::PreprocessISelDAG() {
1116
1111
// Here we could have an FP stack truncation or an FPStack <-> SSE convert.
1117
1112
// FPStack has extload and truncstore. SSE can fold direct loads into other
1118
1113
// operations. Based on this, decide what we want to do.
1119
- MVT MemVT;
1120
- if (N->getOpcode () == ISD::STRICT_FP_ROUND)
1121
- MemVT = DstVT; // FP_ROUND must use DstVT, we can't do a 'trunc load'.
1122
- else
1123
- MemVT = SrcIsSSE ? SrcVT : DstVT;
1124
-
1114
+ MVT MemVT = (N->getOpcode () == ISD::STRICT_FP_ROUND) ? DstVT : SrcVT;
1125
1115
SDValue MemTmp = CurDAG->CreateStackTemporary (MemVT);
1126
1116
SDLoc dl (N);
1127
1117
You can’t perform that action at this time.
0 commit comments