@@ -20284,16 +20284,17 @@ static SDValue LowerINTRINSIC_W_CHAIN(SDValue Op, const X86Subtarget &Subtarget,
20284
20284
SelectionDAG &DAG) {
20285
20285
unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
20286
20286
20287
- const IntrinsicData* IntrData = getIntrinsicWithChain(IntNo);
20287
+ const IntrinsicData * IntrData = getIntrinsicWithChain(IntNo);
20288
20288
if (!IntrData) {
20289
- if (IntNo == llvm::Intrinsic::x86_seh_ehregnode)
20289
+ switch (IntNo) {
20290
+ case llvm::Intrinsic::x86_seh_ehregnode:
20290
20291
return MarkEHRegistrationNode(Op, DAG);
20291
- if (IntNo == llvm::Intrinsic::x86_seh_ehguard)
20292
+ case llvm::Intrinsic::x86_seh_ehguard:
20292
20293
return MarkEHGuard(Op, DAG);
20293
- if (IntNo == llvm::Intrinsic::x86_flags_read_u32 ||
20294
- IntNo == llvm::Intrinsic::x86_flags_read_u64 ||
20295
- IntNo == llvm::Intrinsic::x86_flags_write_u32 ||
20296
- IntNo == llvm::Intrinsic::x86_flags_write_u64) {
20294
+ case llvm::Intrinsic::x86_flags_read_u32:
20295
+ case llvm::Intrinsic::x86_flags_read_u64:
20296
+ case llvm::Intrinsic::x86_flags_write_u32:
20297
+ case llvm::Intrinsic::x86_flags_write_u64: {
20297
20298
// We need a frame pointer because this will get lowered to a PUSH/POP
20298
20299
// sequence.
20299
20300
MachineFrameInfo &MFI = DAG.getMachineFunction().getFrameInfo();
@@ -20302,6 +20303,7 @@ static SDValue LowerINTRINSIC_W_CHAIN(SDValue Op, const X86Subtarget &Subtarget,
20302
20303
// during ExpandISelPseudos in EmitInstrWithCustomInserter.
20303
20304
return SDValue();
20304
20305
}
20306
+ }
20305
20307
return SDValue();
20306
20308
}
20307
20309
0 commit comments