Commit 236f938
committed
[CodeGen] Provide a target independent default for optimizeLoadInst [NFC]
This just moves the x86 implementation into generic code since it appears
to be suitable for any target. The heart of this transform is inside
foldMemoryOperand so other targets won't actually kick in until they
implement said API. This just removes one piece to implement in the
process of enabling foldMemoryOperand.1 parent 52f941a commit 236f938
File tree
4 files changed
+42
-49
lines changed- llvm
- include/llvm/CodeGen
- lib
- CodeGen
- Target/X86
4 files changed
+42
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1791 | 1791 | | |
1792 | 1792 | | |
1793 | 1793 | | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
| 1794 | + | |
1797 | 1795 | | |
1798 | 1796 | | |
1799 | 1797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
499 | 540 | | |
500 | 541 | | |
501 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5716 | 5716 | | |
5717 | 5717 | | |
5718 | 5718 | | |
5719 | | - | |
5720 | | - | |
5721 | | - | |
5722 | | - | |
5723 | | - | |
5724 | | - | |
5725 | | - | |
5726 | | - | |
5727 | | - | |
5728 | | - | |
5729 | | - | |
5730 | | - | |
5731 | | - | |
5732 | | - | |
5733 | | - | |
5734 | | - | |
5735 | | - | |
5736 | | - | |
5737 | | - | |
5738 | | - | |
5739 | | - | |
5740 | | - | |
5741 | | - | |
5742 | | - | |
5743 | | - | |
5744 | | - | |
5745 | | - | |
5746 | | - | |
5747 | | - | |
5748 | | - | |
5749 | | - | |
5750 | | - | |
5751 | | - | |
5752 | | - | |
5753 | | - | |
5754 | | - | |
5755 | | - | |
5756 | | - | |
5757 | | - | |
5758 | | - | |
5759 | | - | |
5760 | 5719 | | |
5761 | 5720 | | |
5762 | 5721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | 574 | | |
580 | 575 | | |
581 | 576 | | |
| |||
0 commit comments