Skip to content

Commit 9b967b9

Browse files
author
mattarde
committed
update review comments
1 parent 09557a0 commit 9b967b9

File tree

4 files changed

+1406
-3638
lines changed

4 files changed

+1406
-3638
lines changed

llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,9 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
448448

449449
// fp comparison
450450
getActionDefinitionsBuilder(G_FCMP)
451-
.legalIf([=](const LegalityQuery &Query) {
452-
return ((HasSSE1 || UseX87) &&
453-
typePairInSet(0, 1, {{s8, s32}})(Query)) ||
454-
((HasSSE2 || UseX87) &&
455-
typePairInSet(0, 1, {{s8, s64}})(Query)) ||
456-
(UseX87 && typePairInSet(0, 1, {{s8, s80}})(Query));
457-
})
451+
.legalFor((HasSSE1 || UseX87), {s8, s32})
452+
.legalFor((HasSSE2 || UseX87), {s8, s64})
453+
.legalFor(UseX87, {s8, s80})
458454
.clampScalar(0, s8, s8)
459455
.clampScalar(1, s32, HasSSE2 ? s64 : s32)
460456
.widenScalarToNextPow2(1);

0 commit comments

Comments
 (0)