Skip to content
  • Chris Lattner's avatar
    This implements folding of constant operands into floating point operations · 80ba4016
    Chris Lattner authored
    for mul and div.
    
    Instead of generating this:
    
    test_divr:
            fld QWORD PTR [%ESP + 4]
            fld QWORD PTR [.CPItest_divr_0]
            fdivrp %ST(1)
            ret
    
    We now generate this:
    
    test_divr:
            fld QWORD PTR [%ESP + 4]
            fdivr QWORD PTR [.CPItest_divr_0]
            ret
    
    This code desperately needs refactoring, which will come in the next
    patch.
    
    llvm-svn: 12841
    80ba4016
Loading