Commit 204701b
committed
[DAGCombiner] Remove a hasOneUse check in visitAND
For some reason there was a hasOneUse check on the splat for the
second operand and it's not obvious to me why. The check blocks
optimisations for lowering of nodes like AVGFLOORU and AVGCEILU.
In a follow-on patch I also plan to improve the generated code
for AVGCEILU further by teaching computeKnownBits about
zero-extending masked loads.1 parent 3f6753b commit 204701b
File tree
2 files changed
+8
-15
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/AArch64
2 files changed
+8
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7095 | 7095 | | |
7096 | 7096 | | |
7097 | 7097 | | |
7098 | | - | |
7099 | | - | |
| 7098 | + | |
7100 | 7099 | | |
7101 | 7100 | | |
7102 | 7101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | | - | |
1351 | | - | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1352 | 1353 | | |
1353 | | - | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
| |||
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | | - | |
1363 | | - | |
1364 | 1362 | | |
1365 | 1363 | | |
1366 | 1364 | | |
| |||
1380 | 1378 | | |
1381 | 1379 | | |
1382 | 1380 | | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
1389 | 1385 | | |
1390 | 1386 | | |
1391 | 1387 | | |
| |||
1394 | 1390 | | |
1395 | 1391 | | |
1396 | 1392 | | |
1397 | | - | |
1398 | | - | |
1399 | 1393 | | |
1400 | 1394 | | |
1401 | 1395 | | |
| |||
0 commit comments