Commit 1157a22
authored
[GISel] Use getScalarSizeInBits in LegalizerHelper::lowerBitCount (#168584)
For vectors, CTLZ, CTTZ, CTPOP all operate on individual elements. The
lowering should be based on the element width.
I noticed this by inspection. No tests in tree are currently affected,
but I thought it would be good to fix so someone doesn't have to debug
it in the future.1 parent 56b1d42 commit 1157a22
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7609 | 7609 | | |
7610 | 7610 | | |
7611 | 7611 | | |
7612 | | - | |
| 7612 | + | |
7613 | 7613 | | |
7614 | 7614 | | |
7615 | 7615 | | |
| |||
7657 | 7657 | | |
7658 | 7658 | | |
7659 | 7659 | | |
7660 | | - | |
| 7660 | + | |
7661 | 7661 | | |
7662 | 7662 | | |
7663 | 7663 | | |
| |||
7695 | 7695 | | |
7696 | 7696 | | |
7697 | 7697 | | |
7698 | | - | |
| 7698 | + | |
7699 | 7699 | | |
7700 | 7700 | | |
7701 | 7701 | | |
| |||
0 commit comments