Skip to content

Commit 28589a3

Browse files
committed
[SelectionDAG] Handle roundeven libcall in visitCall
We can now lower it to its proper instruction.
1 parent a50096b commit 28589a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9710,6 +9710,12 @@ void SelectionDAGBuilder::visitCall(const CallInst &I) {
97109710
if (visitUnaryFloatCall(I, ISD::FROUND))
97119711
return;
97129712
break;
9713+
case LibFunc_roundeven:
9714+
case LibFunc_roundevenf:
9715+
case LibFunc_roundevenl:
9716+
if (visitUnaryFloatCall(I, ISD::FROUNDEVEN))
9717+
return;
9718+
break;
97139719
case LibFunc_trunc:
97149720
case LibFunc_truncf:
97159721
case LibFunc_truncl:

0 commit comments

Comments
 (0)