Commit 4eea762
committed
[NFC] [ShrinkBorrowScope] Moved check.
Previously, the body--of the loop that iterated the instructions in the
block--contained the check that the instruction over which hoisting
might be done is the introducer. Here, that check is moved into
tryHoistOverInstruction. Now that function and its other caller,
canHoistOverInstruction, will return the right value (false) if they are
ever called with the introducer (though that could not happen without
this change).1 parent 650b03c commit 4eea762
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| |||
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 314 | | |
316 | 315 | | |
317 | 316 | | |
| |||
0 commit comments