Commit 856e1f0
committed
[IR] Account for byte width in m_PtrAdd
The method has few uses yet, so just pass DL argument to it. The change
follows m_PtrToIntSameSize, and I don't see a better way of delivering
the byte width to the method.1 parent 29393ec commit 856e1f0
File tree
6 files changed
+35
-17
lines changed- llvm
- include/llvm/IR
- lib
- Analysis
- Transforms
- InstCombine
- Scalar
- unittests/IR
6 files changed
+35
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2046 | 2046 | | |
2047 | 2047 | | |
2048 | 2048 | | |
| 2049 | + | |
2049 | 2050 | | |
2050 | 2051 | | |
2051 | 2052 | | |
2052 | | - | |
2053 | | - | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
2054 | 2056 | | |
2055 | 2057 | | |
2056 | 2058 | | |
2057 | | - | |
| 2059 | + | |
2058 | 2060 | | |
2059 | 2061 | | |
2060 | 2062 | | |
| |||
2096 | 2098 | | |
2097 | 2099 | | |
2098 | 2100 | | |
2099 | | - | |
2100 | | - | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
2101 | 2104 | | |
2102 | 2105 | | |
2103 | 2106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5533 | 5533 | | |
5534 | 5534 | | |
5535 | 5535 | | |
5536 | | - | |
| 5536 | + | |
5537 | 5537 | | |
5538 | 5538 | | |
5539 | 5539 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1058 | 1059 | | |
1059 | 1060 | | |
1060 | 1061 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2692 | 2692 | | |
2693 | 2693 | | |
2694 | 2694 | | |
2695 | | - | |
| 2695 | + | |
2696 | 2696 | | |
2697 | 2697 | | |
2698 | 2698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
1058 | | - | |
| 1058 | + | |
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2599 | 2599 | | |
2600 | 2600 | | |
2601 | 2601 | | |
2602 | | - | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
2603 | 2617 | | |
2604 | 2618 | | |
2605 | 2619 | | |
2606 | 2620 | | |
2607 | 2621 | | |
2608 | 2622 | | |
2609 | | - | |
2610 | | - | |
| 2623 | + | |
| 2624 | + | |
2611 | 2625 | | |
2612 | 2626 | | |
2613 | | - | |
| 2627 | + | |
2614 | 2628 | | |
2615 | 2629 | | |
2616 | 2630 | | |
2617 | | - | |
| 2631 | + | |
2618 | 2632 | | |
2619 | 2633 | | |
2620 | 2634 | | |
2621 | | - | |
| 2635 | + | |
2622 | 2636 | | |
2623 | 2637 | | |
2624 | 2638 | | |
| |||
0 commit comments