Commit 7cca421
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 2a28c47 commit 7cca421
File tree
5 files changed
+33
-16
lines changed- llvm
- include/llvm/IR
- lib
- Analysis
- Transforms/InstCombine
- unittests/IR
5 files changed
+33
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1845 | 1845 | | |
1846 | 1846 | | |
1847 | 1847 | | |
| 1848 | + | |
1848 | 1849 | | |
1849 | 1850 | | |
1850 | 1851 | | |
1851 | | - | |
1852 | | - | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
1853 | 1855 | | |
1854 | 1856 | | |
1855 | 1857 | | |
1856 | | - | |
| 1858 | + | |
1857 | 1859 | | |
1858 | 1860 | | |
1859 | 1861 | | |
| |||
1895 | 1897 | | |
1896 | 1898 | | |
1897 | 1899 | | |
1898 | | - | |
1899 | | - | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
1900 | 1903 | | |
1901 | 1904 | | |
1902 | 1905 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5373 | 5373 | | |
5374 | 5374 | | |
5375 | 5375 | | |
5376 | | - | |
| 5376 | + | |
5377 | 5377 | | |
5378 | 5378 | | |
5379 | 5379 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
991 | | - | |
992 | | - | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
993 | 994 | | |
994 | 995 | | |
995 | 996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2350 | 2350 | | |
2351 | 2351 | | |
2352 | 2352 | | |
2353 | | - | |
| 2353 | + | |
2354 | 2354 | | |
2355 | 2355 | | |
2356 | 2356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2419 | 2419 | | |
2420 | 2420 | | |
2421 | 2421 | | |
2422 | | - | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
2423 | 2436 | | |
2424 | 2437 | | |
2425 | 2438 | | |
2426 | 2439 | | |
2427 | 2440 | | |
2428 | 2441 | | |
2429 | | - | |
2430 | | - | |
| 2442 | + | |
| 2443 | + | |
2431 | 2444 | | |
2432 | 2445 | | |
2433 | | - | |
| 2446 | + | |
2434 | 2447 | | |
2435 | 2448 | | |
2436 | 2449 | | |
2437 | | - | |
| 2450 | + | |
2438 | 2451 | | |
2439 | 2452 | | |
2440 | 2453 | | |
2441 | | - | |
| 2454 | + | |
2442 | 2455 | | |
2443 | 2456 | | |
2444 | 2457 | | |
0 commit comments