Commit 29dc663
committed
[LSR] Do not consider uses in lifetime intrinsics
We should ignore uses of pointers in lifetime intrinsics, as these
are not actually materialized in the final code, so don't affect
register pressure or anything else LSR needs to model.
Handling these only results in peculiar rewrites where additional
intermediate GEPs are introduced.1 parent 76a87fd commit 29dc663
File tree
2 files changed
+6
-3
lines changed- llvm
- lib/Transforms/Scalar
- test/Transforms/LoopStrengthReduce/X86
2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3790 | 3790 | | |
3791 | 3791 | | |
3792 | 3792 | | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
3793 | 3798 | | |
3794 | 3799 | | |
3795 | 3800 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
0 commit comments