Add helper function for inliner and move the big "while" loop into the helper function.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
1,070 ms | x64 debian > libFuzzer.libFuzzer::fuzzer-finalstats.test |
Event Timeline
Comment Actions
Can you detail a bit what motivates the change - do you plan to expose and reuse the code elsewhere? That would help in 2 ways:
- understanding how to review
- avoiding names like 'helper' in descriptions (or - not the case here - APIs). 'helper', like 'utility', communicates very little (it's not like an API would be otherwise called 'unhelpful')
llvm/lib/Transforms/IPO/Inliner.cpp | ||
---|---|---|
811 | should this be a member function instead - to avoid passing so many parameters? |
Comment Actions
I think Liqiang is trying to factor out the bit while loop so that we can share it between the module inliner and the SCC inliner, but sure, he can clarify things both in the commit message and the source code.
should this be a member function instead - to avoid passing so many parameters?