[NFC][SimplifyCFG] Common code sinking: check profitability once
We can just eagerly pre-check all the instructions that we *could* sink that we'd actually want to sink them, clamping the number of instructions that we'll sink to stop just before the first unprofitable one.
Loading
Please sign in to comment