Only turn suitable targets into a fallthrough in CmmContFlowOpt.
We are inverting Branches in CmmContFlowOpt such that we get as many fall through paths as possible.
However as it stands besides the conditionals themselves the only criterion used is the number of predecessors for a Block.
This often (but not always) aligns with the actual possibility of turning branches into a fallthrough.
We should at least look at the cost/benefit of tracking actual predecessors and see if that turns out as something worthwhile.
Trac metadata
Trac field | Value |
---|---|
Version | |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (CodeGen) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |