Commit 3b7c371
[AMDGPU][SelectionDAG] Use COPY instead of S_MOV_B32 to assign values to M0 (llvm#132957)
This is consistent with what's done on GISel. This allows the register
coalescer to remove the redundant intermediate `s_mov_b32` instructions
by using `m0` directly as the result register.
Change-Id: I7f4e19115ff2f95140c209049505cecaed90e4d51 parent 2199fbd commit 3b7c371
File tree
12 files changed
+154
-274
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
12 files changed
+154
-274
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4614 | 4614 | | |
4615 | 4615 | | |
4616 | 4616 | | |
4617 | | - | |
| 4617 | + | |
4618 | 4618 | | |
4619 | 4619 | | |
4620 | 4620 | | |
| |||
4728 | 4728 | | |
4729 | 4729 | | |
4730 | 4730 | | |
4731 | | - | |
| 4731 | + | |
4732 | 4732 | | |
4733 | 4733 | | |
4734 | 4734 | | |
| |||
5323 | 5323 | | |
5324 | 5324 | | |
5325 | 5325 | | |
| 5326 | + | |
5326 | 5327 | | |
5327 | | - | |
5328 | | - | |
| 5328 | + | |
| 5329 | + | |
| 5330 | + | |
5329 | 5331 | | |
5330 | 5332 | | |
5331 | 5333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
309 | | - | |
| 307 | + | |
| 308 | + | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
| |||
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
355 | | - | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
359 | | - | |
| 357 | + | |
360 | 358 | | |
361 | 359 | | |
362 | 360 | | |
| |||
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
454 | | - | |
455 | | - | |
456 | 452 | | |
457 | 453 | | |
458 | 454 | | |
459 | | - | |
| 455 | + | |
| 456 | + | |
460 | 457 | | |
461 | 458 | | |
462 | 459 | | |
| |||
535 | 532 | | |
536 | 533 | | |
537 | 534 | | |
538 | | - | |
539 | | - | |
540 | 535 | | |
541 | 536 | | |
542 | 537 | | |
543 | | - | |
| 538 | + | |
| 539 | + | |
544 | 540 | | |
545 | 541 | | |
546 | 542 | | |
| |||
0 commit comments