summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline/inline-indirect-chain.ll
Commit message (Collapse)AuthorAgeFilesLines
* [InlineCost] Fix infinite loop in indirect call evaluationEhud Katz2019-11-281-0/+55
| | | | | | | | | | | | | | | Currently every time we encounter an indirect call of a known function, we try to evaluate the inline cost of that function. In case of a recursion, that evaluation never stops. The solution I propose is to evaluate only the indirect call of the function, while any further indirect calls (of a known function) will be treated just as direct function calls, which, actually, never tries to evaluate the call. Fixes PR35469. Differential Revision: https://reviews.llvm.org/D69349
* Revert "[InlineCost] Fix infinite loop in indirect call evaluation"Ehud Katz2019-11-231-55/+0
| | | | | | | This reverts commit 854e956219e78cb8d7ef3b021d7be6b5d6b6af04. It broke tests: Transforms/Inline/redundant-loads.ll Transforms/SampleProfile/inline-callee-update.ll
* [InlineCost] Fix infinite loop in indirect call evaluationEhud Katz2019-11-231-0/+55
Currently every time we encounter an indirect call of a known function, we try to evaluate the inline cost of that function. In case of a recursion, that evaluation never stops. The solution presented is to evaluate only the indirect call of the function, while any further indirect calls (of a known function) will be treated just as direct function calls, which, actually, never tries to evaluate the call. Fixes PR35469. Differential Revision: https://reviews.llvm.org/D69349
OpenPOWER on IntegriCloud