[PyTorch] Outline OperatorEntry::assertSignatureIsCorrect fail path (#51269)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51269
This saves about 10% of the compile time of Functions.cpp. Found using clang-9's `-ftime-trace` feature + ClangBuildAnalyzer.
Test Plan:
Compared -ftime-trace + ClangBuildAnalyzer output.
Before: P167884397
After: P167888502
Note that time spent generating assertSignatureIsCorrect is way down, though it's still kind of slow.
Reviewed By: ezyang
Differential Revision: D26121814
fbshipit-source-id: 949a85d8939c02e4fb5ac1adc35905ed34414724