diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-12-06 07:00:02 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-12-06 07:00:02 +0000 |
| commit | 6a6d77b851b788738f58f7355cd7dfcc13e430ea (patch) | |
| tree | fd767f73e52bee664b8b408502e0d8a3fca1cf92 /llvm/lib | |
| parent | 587c1cb9f779a35941cb76b5baeac8886ee66c93 (diff) | |
| download | bcm5719-llvm-6a6d77b851b788738f58f7355cd7dfcc13e430ea.tar.gz bcm5719-llvm-6a6d77b851b788738f58f7355cd7dfcc13e430ea.zip | |
[X86] Remove some leftover code for handling an i1 setcc type. NFC
We should only need to handle i8 now.
llvm-svn: 348460
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 562c4c12f4b..5bdfdfa6033 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -40000,11 +40000,8 @@ static SDValue materializeSBB(SDNode *N, SDValue EFLAGS, SelectionDAG &DAG) { SDValue CF = DAG.getConstant(X86::COND_B, DL, MVT::i8); SDValue SBB = DAG.getNode(X86ISD::SETCC_CARRY, DL, MVT::i8, CF, EFLAGS); MVT VT = N->getSimpleValueType(0); - if (VT == MVT::i8) - return DAG.getNode(ISD::AND, DL, VT, SBB, DAG.getConstant(1, DL, VT)); - - assert(VT == MVT::i1 && "Unexpected type for SETCC node"); - return DAG.getNode(ISD::TRUNCATE, DL, MVT::i1, SBB); + assert(VT == MVT::i8 && "Unexpected type for SETCC node"); + return DAG.getNode(ISD::AND, DL, VT, SBB, DAG.getConstant(1, DL, VT)); } /// If this is an add or subtract where one operand is produced by a cmp+setcc, |

