Commit 4d50f23
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 caa10b7 commit 4d50f23
File tree
5 files changed
+34
-16
lines changed- llvm
- include/llvm/IR
- lib
- Analysis
- Transforms/InstCombine
- unittests/IR
5 files changed
+34
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1940 | 1940 | | |
1941 | 1941 | | |
1942 | 1942 | | |
| 1943 | + | |
1943 | 1944 | | |
1944 | 1945 | | |
1945 | 1946 | | |
1946 | | - | |
1947 | | - | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
1948 | 1950 | | |
1949 | 1951 | | |
1950 | 1952 | | |
1951 | | - | |
| 1953 | + | |
1952 | 1954 | | |
1953 | 1955 | | |
1954 | 1956 | | |
| |||
1990 | 1992 | | |
1991 | 1993 | | |
1992 | 1994 | | |
1993 | | - | |
1994 | | - | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
1995 | 1998 | | |
1996 | 1999 | | |
1997 | 2000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5389 | 5389 | | |
5390 | 5390 | | |
5391 | 5391 | | |
5392 | | - | |
| 5392 | + | |
5393 | 5393 | | |
5394 | 5394 | | |
5395 | 5395 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
995 | | - | |
996 | | - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
997 | 998 | | |
998 | 999 | | |
999 | 1000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2595 | 2595 | | |
2596 | 2596 | | |
2597 | 2597 | | |
2598 | | - | |
| 2598 | + | |
2599 | 2599 | | |
2600 | 2600 | | |
2601 | 2601 | | |
| |||
| 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