Commit c68a06b
committed
[DAGCombiner] Simplify ShAmt alignment in ReduceLoadOpStoreWidth. NFC
The expression used to align ShAmt to a multiple of NewBW in
ReduceLoadOpStoreWidth was difficult to understand
if (ShAmt % NewBW)
ShAmt = (((ShAmt + NewBW - 1) / NewBW) * NewBW) - NewBW;
We can just to like this instead
ShAmt = ShAmt - (ShAmt % NewBW);1 parent a608607 commit c68a06b
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20357 | 20357 | | |
20358 | 20358 | | |
20359 | 20359 | | |
20360 | | - | |
20361 | | - | |
20362 | | - | |
20363 | | - | |
| 20360 | + | |
| 20361 | + | |
| 20362 | + | |
20364 | 20363 | | |
20365 | 20364 | | |
20366 | 20365 | | |
| |||
0 commit comments