Added some optimizations:
authorMisha Brukman <brukman+llvm@gmail.com>
Fri, 5 Sep 2003 22:59:31 +0000 (22:59 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Fri, 5 Sep 2003 22:59:31 +0000 (22:59 +0000)
commit103f0c3472da9a0608d5e030a9b98cfd0b008dc3
tree4ded45f7de15c915c9cf017dde6d40d60878cf9b
parentfd13129bdf7324b2e8181a653897269aaaecc4e8
Added some optimizations:
* Generate a single BA instead of 6-instruction JUMP if possible
  (this occurs both in the creation and overwriting of the stub code)
* If possible, rewrite the ORIGINAL call to call the generated function
  directly, thus bypassing the stub entirely

Also added some statistics on how often calls are overwritten and how often the
CompilationCallback is invoked.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8376 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SparcV9/SparcV9CodeEmitter.cpp