Commit 098e653
[MemCpyOpt] Merge alias metadatas when replacing arguments (#67539)
Alias metadata may no longer be valid after replacing the call argument.
Fix this by merging it with the memcpy alias metadata.
This fixes a miscompilation encountered in
https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Failing.20tests.20when.20rustc.20is.20compiled.20with.201.20CGU.
(cherry picked from commit 4e6e476)1 parent 78d201e commit 098e653
File tree
2 files changed
+17
-11
lines changed- llvm
- lib/Transforms/Scalar
- test/Transforms/MemCpyOpt
2 files changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
335 | 346 | | |
336 | 347 | | |
337 | 348 | | |
| |||
1086 | 1097 | | |
1087 | 1098 | | |
1088 | 1099 | | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
| 1100 | + | |
1097 | 1101 | | |
1098 | | - | |
| 1102 | + | |
1099 | 1103 | | |
1100 | 1104 | | |
1101 | 1105 | | |
| |||
1694 | 1698 | | |
1695 | 1699 | | |
1696 | 1700 | | |
| 1701 | + | |
1697 | 1702 | | |
1698 | 1703 | | |
1699 | 1704 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
| 698 | + | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
| 701 | + | |
| 702 | + | |
702 | 703 | | |
703 | 704 | | |
704 | 705 | | |
| |||
0 commit comments