Ensured initialized fields; encapsulad delta calulations and evaluation of threshold having had changed; assertion for CostThresholdMap dereference, to capture design intent.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Analysis/InlineCost.cpp | ||
---|---|---|
731–732 | It's possible that we don't analyze all instructions. The analysis can stop early if we exceed the threshold. The original code had a problem with this scenario as well. We just need to have an early exit. |
llvm/lib/Analysis/InlineCost.cpp | ||
---|---|---|
731–732 | Can you share the repro, so we can add a regression test as well? |
It's possible that we don't analyze all instructions. The analysis can stop early if we exceed the threshold. The original code had a problem with this scenario as well.
We just need to have an early exit.