trunc (sign_ext_inreg X, iM) to iN --> sign_ext_inreg (trunc X to iN), iM
There are improvements on existing tests from this, and there are a pair of large regressions in D127115 for Thumb2 caused by not folding this pattern.
Differential D129890
[SDAG] narrow truncated sign_extend_inreg spatel on Jul 15 2022, 11:56 AM. Authored by
Details trunc (sign_ext_inreg X, iM) to iN --> sign_ext_inreg (trunc X to iN), iM There are improvements on existing tests from this, and there are a pair of large regressions in D127115 for Thumb2 caused by not folding this pattern.
Diff Detail
Unit Tests Event TimelineComment Actions Patch updated:
|
Shouldn't really require legal types, but the DAG is lacking in adequate legality checks for sext_inreg