Skip to content
  • Jakob Stoklund Olesen's avatar
    Add a proper if-conversion cost model. · bc55bfde
    Jakob Stoklund Olesen authored
    Detect when there is not enough available ILP, so if-conversion can't
    speculate instructions for free.
    
    Compute the lengthening of the critical path when inserting a select
    instruction that depends on the condition as well as both sides of the
    if.
    
    Reject conversions that would stretch the critical path by more than
    half a mispredict penalty.
    
    llvm-svn: 161713
    bc55bfde
Loading