Commit 5604e7a
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 c335952 commit 5604e7a
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 | |
|---|---|---|---|
| |||
1924 | 1924 | | |
1925 | 1925 | | |
1926 | 1926 | | |
| 1927 | + | |
1927 | 1928 | | |
1928 | 1929 | | |
1929 | 1930 | | |
1930 | | - | |
1931 | | - | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
1932 | 1934 | | |
1933 | 1935 | | |
1934 | 1936 | | |
1935 | | - | |
| 1937 | + | |
1936 | 1938 | | |
1937 | 1939 | | |
1938 | 1940 | | |
| |||
1974 | 1976 | | |
1975 | 1977 | | |
1976 | 1978 | | |
1977 | | - | |
1978 | | - | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
1979 | 1982 | | |
1980 | 1983 | | |
1981 | 1984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5397 | 5397 | | |
5398 | 5398 | | |
5399 | 5399 | | |
5400 | | - | |
| 5400 | + | |
5401 | 5401 | | |
5402 | 5402 | | |
5403 | 5403 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
994 | | - | |
995 | | - | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
996 | 997 | | |
997 | 998 | | |
998 | 999 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2419 | 2419 | | |
2420 | 2420 | | |
2421 | 2421 | | |
2422 | | - | |
| 2422 | + | |
2423 | 2423 | | |
2424 | 2424 | | |
2425 | 2425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2618 | 2618 | | |
2619 | 2619 | | |
2620 | 2620 | | |
2621 | | - | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
2622 | 2636 | | |
2623 | 2637 | | |
2624 | 2638 | | |
2625 | 2639 | | |
2626 | 2640 | | |
2627 | 2641 | | |
2628 | | - | |
2629 | | - | |
| 2642 | + | |
| 2643 | + | |
2630 | 2644 | | |
2631 | 2645 | | |
2632 | | - | |
| 2646 | + | |
2633 | 2647 | | |
2634 | 2648 | | |
2635 | 2649 | | |
2636 | | - | |
| 2650 | + | |
2637 | 2651 | | |
2638 | 2652 | | |
2639 | 2653 | | |
2640 | | - | |
| 2654 | + | |
2641 | 2655 | | |
2642 | 2656 | | |
2643 | 2657 | | |
0 commit comments