<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 25, 2013, at 12:00 PM, Chandler Carruth <<a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Menlo; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">Because, much to my regret, early if-conversion isn't enabled on x86, so we don't end up fixing this later.</span></blockquote></div><br><div>You seem very eager to have your ifs converted, and the early if-conversion pass is pretty much good to go.</div><div><br></div><div>This is my todo-list for enabling it on x86:</div><div><br></div><div>1. Verify that the MCSchedModel for x86 cpus looks reasonable. We probably don't need a fine-grained model with per-instruction latencies. The MCSchedModel allows a coarse classification:</div><div><br></div><div>- Integer instrs 1 cycle,</div><div>- Loads 4 cycles,</div><div>- High latency instrs 3 cycles (for floating point).</div><div><br></div><div>The IssueWidth should probably be set at 3 or 4.</div><div><br></div><div>2. Run some benchmarks to identify regressions. Perhaps tweak settings like the misprediction penalty.</div><div><div><br></div><div>MultiSource/Benchmarks/FreeBench/fourinarow was a massive regression last time I tested it because the float <-> int conversion instructions weren't marked as high latency at the time.</div><div><br></div></div><div>3. Check for increased spilling on x86 (32-bit). Perhaps only enable if-conversion for x86-64 if it is too hard on register pressure.</div><div><br></div><div>Have at it!</div><div><br></div><div>/jakob</div><div><br></div></body></html>