This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Commit 05f5a91
authored
LICM: use IRBuilder in hoist BO assoc (llvm#106978)
Use IRBuilder when creating the new invariant instruction, so that the
constant-folder has an opportunity to constant-fold the new Instruction
that we desire to create.1 parent df159d3 commit 05f5a91
File tree
2 files changed
+7
-5
lines changed- llvm
- lib/Transforms/Scalar
- test/Transforms/LICM
2 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2841 | 2841 | | |
2842 | 2842 | | |
2843 | 2843 | | |
2844 | | - | |
2845 | | - | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
2846 | 2847 | | |
2847 | 2848 | | |
2848 | 2849 | | |
2849 | 2850 | | |
2850 | 2851 | | |
2851 | 2852 | | |
2852 | | - | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
2853 | 2856 | | |
2854 | 2857 | | |
2855 | 2858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
0 commit comments