SIGN IN SIGN UP

Arm backend: Avoid unnecessary lowering pass retraces (#21138)

Add cheap applicability checks before selected Arm passes enter the
ExportPass retracing path. Skip InsertRescalePass for profiles without
integer support and graphs without DQ nodes. Move symbolic shape and
adaptive pool passes to ArmOpTargetedPass, and pre-scan
RemoveGetItemPass producers.

These checks preserve target-present transformations while avoiding
retraces on non-applicable graphs.

Lowering times are medians of three fresh-process exports with no
warm-up. Regular models use TOSA FP with FP32; full Qwen uses BF16.

| Model             | Base (s) | Updated (s) | Speedup |
|-------------------|---------:|------------:|--------:|
| ResNet-18         |    3.633 |       3.519 |   3.16% |
| MobileNetV3       |   11.063 |      10.100 |   8.70% |
| DeiT-tiny         |   33.323 |      31.137 |   6.56% |
| Conformer         |   13.121 |      12.204 |   6.98% |
| Test Qwen text    |   11.582 |      10.962 |   5.35% |
| Test Qwen vision  |   11.979 |      11.388 |   4.93% |
| Full Qwen text    |  155.825 |     146.824 |   5.78% |
| Full Qwen vision  |  126.671 |     120.153 |   5.15% |

Change-Id: I3c539e023efb5d1e59a725e531c850a897758002


cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils
@Sebastian-Larsson @robell @rascani

Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
Y
Yufeng Shi committed
fbd14e65299071097a9b729d826cf1ad414db16f
Parent: e2c9a48
Committed by GitHub <noreply@github.com> on 7/24/2026, 9:22:43 AM