FastISel: For calls, prefer using the callee's address as a constant
authorDan Gohman <gohman@apple.com>
Wed, 17 Sep 2008 21:18:49 +0000 (21:18 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 17 Sep 2008 21:18:49 +0000 (21:18 +0000)
commitb5b6ec64889b6ee1f75c9a21efb99570e58a517f
tree6102433e9e146a3fff45591419fb15940cb64978
parent91aac1015e6714d959801dd8d60f55a72827dc4d
FastISel: For calls, prefer using the callee's address as a constant
over having it in a register. And wait until after checking type
legality before requesting that the callee address be placed in a
register. Also, fix support for calls with void return type.

This speeds up fast-isel isel time by about 15% and reduces
instruction counts by about 3% overall on certain testcases. It also
changes many indirect calls to direct calls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56292 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp