[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.
parent
4c27ca21
Please register or sign in to comment