This removes the need for backends to set DIV/REM pairs to custom if they implement divrem
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
the following patch connects tests for r600 that exercise this codepath
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150406/270202.html
v2:
TargetLoweringBase:: -> TargetLowering::
Use Ops array
i considered using SDNode, but the line
SDNode *Res = DAG.getNode(..................).getNode();
looked a bit long/awkward.
I can add the change in v3 if you really prefer it that way.
I'm not a big fan, but I don't have a better alternative, so, LGTM, thanks!
Fair enough. How about using an explicit Res.getValue(0) for DIV instead?
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | ||
---|---|---|
2551 | Also, unnecessary newline. |
TargetLoweringBase:: -> TargetLowering::