This heurisitc is used to determine whether or not to CSE physical register defs. My understanding is that this pass will only CSE a physical register def that is within 'LookAheadLimit' instructions of a common expression.
I'm adding a target query for this because the R600 backend needs this LookAheadLimit to be MAX_UINT.
I'm not sure what the original intent of this heuristic was and why the value is 5, so another possibility would be to remove it entirely.
Can we just say something like, "The default lookahead is small to prevent unprofitable quadratic behavior." Next year, no one will know to whom "I" refers without a lot of work ;)