This adds a cost model that takes into account the total number of machine instructions to be removed from each region, the number of instructions added by adding a new function with a set of instructions, and the instructions added by handling arguments.
Tests not adding flags:
- llvm/test/Transforms/IROutliner/outlining-cost-model.ll