Files
Henry Jiang 77434ce19a [DAGCombiner] Teach reduceLoadWidth to look past ISD:FREEZE (#189317)
Teach `DAGCombiner::reduceLoadWidth` to look through freeze SDNodes when
narrowing loads. The narrowed result is then wrapped in freeze to
preserve the original semantics. Currently, several folds were blocked
by the freeze:
```
and(freeze(load), 0xff) -> AssertZext(freeze(zextload, i8))
trunc(freeze(load i32), i8) -> freeze(load i8)
sext_inreg(freeze(load), i8) -> AssertSext(freeze(sextload, i8))
```
and many other patterns due to legalizer or upstream IR passes inserting
freeze. This generally has the positive effects of narrowing the load
type.
2026-04-30 09:37:39 -07:00
..
2026-03-17 20:29:41 +08:00
2026-04-25 21:06:51 +00:00