Commit 48cf620
committed
[ARM][ConstantIslands] Correct MinNoSplitDisp calculation
MinNoSplitDisp was first introduced in D16890 to handle cases where the
ConstantIslands pass fails to converge in the presence of big basic
blocks. However, the computation of the variable seems to be wrong as it
currently computes the offset immediately following UserBB. In other words, it
represents the distance from the beginning of the function to the end of
UserBB. The distance from the beginning of the function does not seem to be a
good indicator of how big the basic block is unless the basic block is close to
the beginning of the function. I think MinNoSplitDisp should compute the
distance between UserOffset and the end of UserBB instead.1 parent 339c788 commit 48cf620
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
| 1327 | + | |
| 1328 | + | |
1328 | 1329 | | |
1329 | 1330 | | |
1330 | 1331 | | |
| |||
0 commit comments