Commit 49833a2
committed
[ConstantFolding] Fold scalable get_active_lane_masks
Scalable get_active_lane_mask intrinsics with a range of 0 can be lowered to
zeroinitializer. This helps remove no-op scalable masked stores and loads.
When the second operand is 0, this cannot be done (see llvm#152140)1 parent 6d902b6 commit 49833a2
File tree
2 files changed
+41
-0
lines changed- llvm
- lib/Analysis
- test/Transforms/InstSimplify/ConstProp
2 files changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4238 | 4238 | | |
4239 | 4239 | | |
4240 | 4240 | | |
| 4241 | + | |
| 4242 | + | |
| 4243 | + | |
| 4244 | + | |
| 4245 | + | |
| 4246 | + | |
| 4247 | + | |
4241 | 4248 | | |
4242 | 4249 | | |
4243 | 4250 | | |
| |||
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
310 | 341 | | |
311 | 342 | | |
312 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
0 commit comments