SIGN IN SIGN UP

Reduce size of Method::parse_types (#7613)

* add maybe_unused where needed in size_test.cpp

At least one internal build have -Werror -Wunused-variable and ExecuTorch logging disabled.

Differential Revision: [D68032964](https://our.internmc.facebook.com/intern/diff/D68032964/)

ghstack-source-id: 260945746
Pull Request resolved: https://github.com/pytorch/executorch/pull/7602

* Reduce size of Method::parse_types

It looks like this function was big enough that inlining gave up, since I was seeing non-inlined calls to val_as_Foo() that should have been easily optimized away. Do said optimization manually.

Differential Revision: [D68037113](https://our.internmc.facebook.com/intern/diff/D68037113/)

ghstack-source-id: 260959235
Pull Request resolved: https://github.com/pytorch/executorch/pull/7603

---------

Co-authored-by: Github Executorch <github_executorch@arm.com>
P
pytorchbot committed
a1c5678c31397c2803ccc59e8189219234ece076
Parent: d229513
Committed by GitHub <noreply@github.com> on 1/13/2025, 8:06:05 PM