Qin may be large, and Succ may be more frequent than BB. Take these both into
account when deciding if tail-duplication is profitable.
Details
Details
- Reviewers
davidxl
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Update comments in response to review.
lib/CodeGen/MachineBlockPlacement.cpp | ||
---|---|---|
802 | They work out to be the same. I think it's simpler to compute the min/max over 2 block frequencies, rather than over a total. |
lib/CodeGen/MachineBlockPlacement.cpp | ||
---|---|---|
802 | Is it always the same? |
lib/CodeGen/MachineBlockPlacement.cpp | ||
---|---|---|
802 | We can extract the Qout terms to start: Qout + min(F + Qin * U, F * U + Qin) When is F + Qin * U < F * U + Qin ? when F < Qin: F + Qin * U - F *U - Qin < 0 F (1 - U) - Qin (1 - U) < 0 F (1 - U) < Qin (1 - U) F < Qin (This requires U < 1, but it's a probability) |
this layout or BB, Succ, D Dom, C+Succ ?