Repository navigation
Commit e56c2ce
authored
[IR] Remove llvm.strip.invariant.group intrinsic (#225399)
This intrinsic was originally introduced to make sure that if we have a
dominating condition like `a == launder.invariant.group(a)`, we don't
end up replacing the latter with the former, as that would allow the
optimizer to assume that the memory stays invariant, despite going
through a launder operation. Wrapping both comparison operands in
strip.invariant.group avoids the issue, because replacing one stripped
pointer with another is safe.
The underlying issue was fixed in
#224281 (and prior work), which
ensures that the problematic replacement cannot happen in the first
place.
#225072 stopped emitting
llvm.strip.invariant.group on the clang side.
This PR now removes the intrinsic entirely. To be on the safe side, it
is upgraded to llvm.launder.invariant.group. For Clang's specific usage,
just dropping it would be fine.1 parent 7ecac80 commit e56c2ce
61 files changed
Lines changed: 175 additions & 716 deletions
File tree
- llvm
- docs
- include/llvm
- Analysis
- IR
- lib
- Analysis
- CodeGen
- GlobalISel
- SelectionDAG
- IR
- Target/AMDGPU
- Transforms
- InstCombine
- Instrumentation
- test
- Analysis
- BasicAA
- CostModel
- X86
- ValueTracking
- Bitcode
- CodeGen
- AArch64/GlobalISel
- AMDGPU
- Generic
- Instrumentation/MemorySanitizer
- Other
- Transforms
- Attributor
- CodeGenPrepare
- AArch64
- X86
- DeadStoreElimination
- FunctionAttrs
- GVN
- GlobalOpt
- Inline
- InstCombine
- InstSimplify
- NewGVN
- SROA
- SimplifyCFG
- mlir
- include/mlir/Dialect/LLVMIR
- lib/Dialect/LLVMIR/IR
- test
- Dialect/LLVMIR
- Target/LLVMIR
- Import
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24340 | 24340 | | |
24341 | 24341 | | |
24342 | 24342 | | |
24343 | | - | |
24344 | | - | |
24345 | | - | |
24346 | | - | |
24347 | | - | |
24348 | | - | |
24349 | | - | |
24350 | | - | |
24351 | | - | |
24352 | | - | |
24353 | | - | |
24354 | | - | |
24355 | | - | |
24356 | | - | |
24357 | | - | |
24358 | | - | |
24359 | | - | |
24360 | | - | |
24361 | | - | |
24362 | | - | |
24363 | | - | |
24364 | | - | |
24365 | | - | |
24366 | | - | |
24367 | | - | |
24368 | | - | |
24369 | | - | |
24370 | | - | |
24371 | | - | |
24372 | | - | |
24373 | 24343 | | |
24374 | 24344 | | |
24375 | 24345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
944 | 943 | | |
945 | 944 | | |
946 | 945 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
455 | | - | |
| 454 | + | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
2792 | | - | |
2793 | | - | |
2794 | | - | |
2795 | | - | |
2796 | | - | |
2797 | 2792 | | |
2798 | 2793 | | |
2799 | 2794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | 954 | | |
959 | 955 | | |
960 | 956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1918 | 1918 | | |
1919 | 1919 | | |
1920 | 1920 | | |
1921 | | - | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | 1921 | | |
1927 | 1922 | | |
1928 | 1923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
| 688 | + | |
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1746 | 1746 | | |
1747 | 1747 | | |
1748 | 1748 | | |
1749 | | - | |
1750 | 1749 | | |
1751 | 1750 | | |
1752 | 1751 | | |
| |||
2634 | 2633 | | |
2635 | 2634 | | |
2636 | 2635 | | |
2637 | | - | |
2638 | | - | |
| 2636 | + | |
2639 | 2637 | | |
2640 | 2638 | | |
2641 | 2639 | | |
2642 | 2640 | | |
2643 | | - | |
2644 | | - | |
2645 | | - | |
| 2641 | + | |
| 2642 | + | |
2646 | 2643 | | |
2647 | 2644 | | |
2648 | 2645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2535 | 2535 | | |
2536 | 2536 | | |
2537 | 2537 | | |
2538 | | - | |
2539 | 2538 | | |
2540 | 2539 | | |
2541 | 2540 | | |
| |||
0 commit comments