Skip to content
  • Evan Cheng's avatar
    Instead of adding copyfromreg's to handle physical definitions. Now isel can · c5549fc3
    Evan Cheng authored
    simply specify them as results and let scheduledag handle them. That
    is, instead of
    SDOperand Flag = DAG.getTargetNode(Opc, MVT::i32, MVT::Flag, ...)
    SDOperand Result = DAG.getCopyFromReg(Chain, X86::EAX, MVT::i32, Flag)
    
    Just write:
    SDOperand Result = DAG.getTargetNode(Opc, MVT::i32, MVT::i32, ...)
    
    And let scheduledag emit the move from X86::EAX to a virtual register.
    
    llvm-svn: 40710
    c5549fc3
Loading