Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit e37f45f

Browse files
pcwaltonalexcrichton
authored andcommitted
Add support for i1 compare operations to X86 FastISel, and ignore llvm.assume()
intrinsics in the target-independent FastISel.
1 parent 33b96f5 commit e37f45f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/CodeGen/SelectionDAG/FastISel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,8 @@ bool FastISel::selectIntrinsicCall(const IntrinsicInst *II) {
11001100
// At -O0 we don't care about the lifetime intrinsics.
11011101
case Intrinsic::lifetime_start:
11021102
case Intrinsic::lifetime_end:
1103+
// At -O0 we don't care about assumptions.
1104+
case Intrinsic::assume:
11031105
// The donothing intrinsic does, well, nothing.
11041106
case Intrinsic::donothing:
11051107
return true;

lib/Target/X86/X86FastISel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ static unsigned X86ChooseCmpOpcode(EVT VT, const X86Subtarget *Subtarget) {
11641164

11651165
switch (VT.getSimpleVT().SimpleTy) {
11661166
default: return 0;
1167+
case MVT::i1: return X86::CMP8rr;
11671168
case MVT::i8: return X86::CMP8rr;
11681169
case MVT::i16: return X86::CMP16rr;
11691170
case MVT::i32: return X86::CMP32rr;

0 commit comments

Comments
 (0)