Aditya Nandakumar
6d47a41520
[GISel]: Add legalization support for Widening UADDO/USUBO
...
https://reviews.llvm.org/D51384
Added code in LegalizerHelper to widen UADDO/USUBO along with unit
tests.
Reviewed by volkan.
llvm-svn: 340892
2018-08-29 03:17:08 +00:00
Aditya Nandakumar
c106183518
[GISel]: Add legalization support for widening bit counting operations
...
https://reviews.llvm.org/D51053
Added legalization for WidenScalar of various bitcounting opcodes.
Reviewed by arsenm.
llvm-svn: 340429
2018-08-22 17:59:18 +00:00
Aditya Nandakumar
c0333f7184
Revert "Revert rr340111 "[GISel]: Add Legalization/lowering code for bit counting operations""
...
This reverts commit d1341152d91398e9a882ba2ee924147ea2f9b589.
This patch originally made use of Nested MachineIRBuilder buildInstr
calls, and since order of argument processing is not well defined, the
instructions were built slightly in a different order (still correct).
I've removed the nested buildInstr calls to have a defined order now.
Patch was tested by Mikael.
llvm-svn: 340309
2018-08-21 17:30:31 +00:00
Reid Kleckner
918930adf9
Revert rr340111 "[GISel]: Add Legalization/lowering code for bit counting operations"
...
It causes LegalizerHelperTest.LowerBitCountingCTTZ1 to fail.
llvm-svn: 340186
2018-08-20 16:50:19 +00:00
Aditya Nandakumar
59b2485ba2
[GISel]: Add Legalization/lowering code for bit counting operations
...
https://reviews.llvm.org/D48847#inline-448257
Ported legalization expansions for CTLZ/CTTZ from DAG to GISel.
Reviewed by rtereshin.
llvm-svn: 340111
2018-08-18 00:01:54 +00:00