Skip to content

Commit 76f3405

Browse files
Addressed the review comments1
1 parent 065659e commit 76f3405

File tree

6 files changed

+332
-440
lines changed

6 files changed

+332
-440
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,9 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
9999
.widenScalarToNextPow2(0, /*Min=*/8)
100100
.clampScalar(0, s8, sMaxScalar);
101101

102-
getActionDefinitionsBuilder(G_LROUND)
103-
.libcallIf([=](const LegalityQuery &Query) -> bool {
104-
return (typeInSet(0, {s32, s64})(Query) &&
105-
typeInSet(1, {s32, s64, s80})(Query));
106-
});
102+
getActionDefinitionsBuilder(G_LROUND).libcall();
107103

108-
getActionDefinitionsBuilder(G_LLROUND)
109-
.libcallIf([=](const LegalityQuery &Query) -> bool {
110-
return (typeIs(0, s64)(Query) &&
111-
typeInSet(1, {s32, s64, s80})(Query));
112-
});
104+
getActionDefinitionsBuilder(G_LLROUND).libcall();
113105

114106
// merge/unmerge
115107
for (unsigned Op : {G_MERGE_VALUES, G_UNMERGE_VALUES}) {

llvm/test/CodeGen/X86/isel-llround.ll

Lines changed: 0 additions & 139 deletions
This file was deleted.

0 commit comments

Comments
 (0)