commit | 8ebf1c35a15ea2c316edd207e8258af0d634931a | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Apr 11 21:09:14 2004 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Apr 11 21:09:14 2004 +0000 |
tree | e38d39a17589b5fe35b8f88073e68550a82163c5 | |
parent | 462fa82270b243f856c66399324f00402fd48d3e [diff] |
This implements folding of constant operands into floating point operations 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12841 91177308-0d34-0410-b5e6-96231b3b80d8