- Oct 20, 2003
-
-
Chris Lattner authored
C is a constant which can be sign-extended from 8 bits without value loss, and op is one of: add, sub, imul, and, or, xor. This allows the JIT to emit the one byte version of the constant instead of the two or 4 byte version. Because these instructions are very common, this can save a LOT of code space. For example, I sampled two benchmarks, 176.gcc and 254.gap. BM Old New Reduction 176.gcc 2673621 2548962 4.89% 254.gap 498261 475104 4.87% Note that while the percentage is not spectacular, this did eliminate 124.6 _KILOBYTES_ of codespace from gcc. Not bad. Note that this doesn't effect the llc version at all, because the assembler already does this optimization. llvm-svn: 9284
-
Chris Lattner authored
llvm-svn: 9283
-
Chris Lattner authored
llvm-svn: 9282
-
Chris Lattner authored
llvm-svn: 9281
-
Misha Brukman authored
llvm-svn: 9280
-
Chris Lattner authored
* Implement R1 = R2 * C where R1 and R2 are 32 or 16 bits. This avoids an extra copy into a register, reducing register pressure. llvm-svn: 9278
-
- Oct 19, 2003
-
-
Chris Lattner authored
llvm-svn: 9270
-
Chris Lattner authored
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions. llvm-svn: 9269
-
Chris Lattner authored
getelementptr code path for use by other code paths (like malloc and alloca). * Optimize comparisons with zero * Generate neg, not, inc, and dec instructions, when possible. This gives some code size wins, which might translate into performance. We'll see tommorow in the nightly tester. llvm-svn: 9267
-
Chris Lattner authored
llvm-svn: 9266
-
Chris Lattner authored
This fixes PR#44. llvm-svn: 9252
-
Chris Lattner authored
llvm-svn: 9251
-
Chris Lattner authored
llvm-svn: 9250
-
Chris Lattner authored
This also fixes miscompilation of 176.gcc. llvm-svn: 9249
-
- Oct 18, 2003
-
-
Chris Lattner authored
all, making it pointless for use with the code generator debugger. With it, it works like a charm. llvm-svn: 9245
-
Chris Lattner authored
llvm-svn: 9236
-
Chris Lattner authored
llvm-svn: 9228
-
Chris Lattner authored
llvm-svn: 9227
-
Chris Lattner authored
llvm-svn: 9226
-
Chris Lattner authored
llvm-svn: 9225
-
Chris Lattner authored
llvm-svn: 9224
-
Chris Lattner authored
Update the sparc backend to at least compile correctly with the new varargs stuff even if it's not all implemented yet. llvm-svn: 9223
-
Chris Lattner authored
llvm-svn: 9222
-
Chris Lattner authored
more efficient encoding of varargs calls, and the new varargs intrinsics. llvm-svn: 9221
-
Chris Lattner authored
* More dense bytecode encoding for varargs calls (like printf) * Eliminated the extremely old bytecode format. rev #0 is now 1.0 llvm-svn: 9220
-
Chris Lattner authored
llvm-svn: 9219
-
- Oct 17, 2003
-
-
Misha Brukman authored
llvm-svn: 9212
-
Brian Gaeke authored
displacement. llvm-svn: 9210
-
Misha Brukman authored
ModuleProvider, which has bad consequences in lli::callAsMain() which tries to access that same Module*. llvm-svn: 9205
-
Brian Gaeke authored
llvm-svn: 9204
-
Brian Gaeke authored
Make insertFarJumpAtAddr() return void, because nothing uses its return value. Remove some commented-out code. Implement replaceMachineCodeForFunction() for SPARC. llvm-svn: 9203
-
Brian Gaeke authored
llvm-svn: 9202
-
Misha Brukman authored
llvm-svn: 9201
-
Brian Gaeke authored
Add prototypes for recompileAndRelinkFunction() and runJITOnFunction(). llvm-svn: 9200
-
Brian Gaeke authored
runJITOnFunction(). Add new method for recompiling and patching in new versions of functions, recompileAndRelinkFunction(). llvm-svn: 9199
-
Brian Gaeke authored
llvm-svn: 9196
-
Chris Lattner authored
llvm-svn: 9195
-
Chris Lattner authored
llvm-svn: 9191
-
Alkis Evlogimenos authored
Rename SlotCalculator::getValSlot() to SlotCalculator::getSlot(), SlotCalculator::insertValue() to SlotCalculator::getOrCreateSlot(), SlotCalculator::insertVal() to SlotCalculator::insertValue(), and SlotCalculator::doInsertVal() to SlotCalculator::doInsertValue(). llvm-svn: 9190
-
Brian Gaeke authored
llvm-svn: 9187
-