Evan Cheng [Wed, 25 Jan 2006 09:14:32 +0000 (09:14 +0000)]
Bottom up register usage reducing list scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25601
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Jan 2006 09:13:41 +0000 (09:13 +0000)]
Keep track of bottom / top element of a set of flagged nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25600
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Jan 2006 09:12:57 +0000 (09:12 +0000)]
If scheduler choice is the default (-sched=default), use target scheduling
preference to determine which scheduler to use. SchedulingForLatency ==
Breadth first; SchedulingForRegPressure == bottom up register reduction list
scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25599
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Jan 2006 09:09:02 +0000 (09:09 +0000)]
Add a enum to specify target scheduling preference: SchedulingForLatency or
SchedulingForRegPressure. Added corresponding methods to set / get the value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25598
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Jan 2006 09:07:50 +0000 (09:07 +0000)]
Some minor scheduler changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25597
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Jan 2006 09:05:09 +0000 (09:05 +0000)]
Fix a selectcc lowering bug. Make a copy of X86ISD::CMP when folding it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25596
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2006 08:00:36 +0000 (08:00 +0000)]
Loosen up these checks to allow direct uses of ESP
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25595
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Wed, 25 Jan 2006 02:40:10 +0000 (02:40 +0000)]
Portably cast a pointer to an integer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25594
91177308-0d34-0410-b5e6-
96231b3b80d8
Duraid Madina [Wed, 25 Jan 2006 02:23:38 +0000 (02:23 +0000)]
add bundling! well not really, for now it's just stop-insertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25593
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Wed, 25 Jan 2006 01:51:08 +0000 (01:51 +0000)]
maintaining stackpointer alignment. Perhaps it doesn't matter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25592
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Tue, 24 Jan 2006 21:26:43 +0000 (21:26 +0000)]
fix build on 64 bit hosts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25591
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 24 Jan 2006 20:46:50 +0000 (20:46 +0000)]
Fix an optional in flag bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25590
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 24 Jan 2006 20:07:38 +0000 (20:07 +0000)]
Optional InFlag was not being included in node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25588
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 19:36:27 +0000 (19:36 +0000)]
Fix Regression/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25587
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 19:34:57 +0000 (19:34 +0000)]
testcase that crashes scalarrepl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25586
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 06:14:44 +0000 (06:14 +0000)]
use ESP directly, not a copy of ESP into some other register for fastcc calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25584
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 06:13:48 +0000 (06:13 +0000)]
This is still broken
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25583
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 05:48:21 +0000 (05:48 +0000)]
Fix an infinite loop I caused by making sure to legalize the flag operand
of CALLSEQ_* nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25582
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 05:47:05 +0000 (05:47 +0000)]
add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25581
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 05:17:12 +0000 (05:17 +0000)]
Emit the copies out of call return registers *after* the ISD::CALLSEQ_END
node, fixing fastcc and the case where a function has a frame pointer due
to dynamic allocas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25580
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 05:01:39 +0000 (05:01 +0000)]
new c front-end testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25579
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 04:50:48 +0000 (04:50 +0000)]
Allow jit-beta to work
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25578
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 24 Jan 2006 04:43:17 +0000 (04:43 +0000)]
Fix VC++ compilation error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25577
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 24 Jan 2006 04:42:53 +0000 (04:42 +0000)]
Remove unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25576
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 24 Jan 2006 04:41:48 +0000 (04:41 +0000)]
Be consistent in using class/struct to keep Visual Studio happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25575
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 24 Jan 2006 04:40:54 +0000 (04:40 +0000)]
Add new files to Visual Studio.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25574
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 24 Jan 2006 04:40:19 +0000 (04:40 +0000)]
Track changes in config.h.in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25573
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 04:16:34 +0000 (04:16 +0000)]
rename method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25572
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 04:14:29 +0000 (04:14 +0000)]
Rename method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25571
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 04:13:11 +0000 (04:13 +0000)]
Initial checkin of the InlineAsm class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25570
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Tue, 24 Jan 2006 00:49:18 +0000 (00:49 +0000)]
Crude Dwarf global variable debugging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25569
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 00:45:30 +0000 (00:45 +0000)]
Pretty print file-scope asm blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25568
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 00:40:17 +0000 (00:40 +0000)]
syntax change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25567
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2006 00:37:20 +0000 (00:37 +0000)]
minor syntax change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25566
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:47:53 +0000 (23:47 +0000)]
Print file-scope inline asm blocks at the start of the output file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25565
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:43:17 +0000 (23:43 +0000)]
Add support for reading/writing inline asm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25564
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:38:09 +0000 (23:38 +0000)]
Update for file-scope inline asm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25563
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:24:13 +0000 (23:24 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25562
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:23:47 +0000 (23:23 +0000)]
document module-level inline asm support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25561
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:08:37 +0000 (23:08 +0000)]
Add support for linking inline asm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25560
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:06:28 +0000 (23:06 +0000)]
When cloning a module, clone the inline asm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25559
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:05:42 +0000 (23:05 +0000)]
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25558
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:05:15 +0000 (23:05 +0000)]
Add support for parsing global asm blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25557
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:03:36 +0000 (23:03 +0000)]
Print out inline asm strings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25556
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 23:02:28 +0000 (23:02 +0000)]
Add global scope asm support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25555
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 23 Jan 2006 21:56:07 +0000 (21:56 +0000)]
bye bye Pattern ISEL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25553
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 23 Jan 2006 21:51:33 +0000 (21:51 +0000)]
added stores to lsmark
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25552
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 23 Jan 2006 21:51:14 +0000 (21:51 +0000)]
another couple selects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25551
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 23 Jan 2006 21:23:26 +0000 (21:23 +0000)]
fix up more lsmark stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25550
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 23 Jan 2006 20:59:50 +0000 (20:59 +0000)]
yea, lowering this stuff will basically work
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25549
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 23 Jan 2006 20:59:12 +0000 (20:59 +0000)]
another selectto
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25548
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Mon, 23 Jan 2006 13:34:04 +0000 (13:34 +0000)]
Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25545
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 23 Jan 2006 08:26:10 +0000 (08:26 +0000)]
Skeleton of the list schedule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25544
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 23 Jan 2006 08:25:34 +0000 (08:25 +0000)]
Minor clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25543
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 23 Jan 2006 08:15:53 +0000 (08:15 +0000)]
Update for including additional function tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25542
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 23 Jan 2006 08:11:03 +0000 (08:11 +0000)]
Revert last patch because it messes up the JIT, amongst other things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25541
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 23 Jan 2006 07:42:30 +0000 (07:42 +0000)]
For PR411:
No functionality changes, just improve the code by a) providing better
function names, b) eliminating a call to get_suffix and c) tightening up
a function elimination test to reduce further checking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25540
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 23 Jan 2006 07:39:03 +0000 (07:39 +0000)]
For PR411:
Don't try to be smart about fixing intrinsic functions when they're read
in, just fix them after the module is read when all names are resolved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25539
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 07:30:46 +0000 (07:30 +0000)]
Fix Regression/CodeGen/SparcV8/2006-01-22-BitConvertLegalize.ll by making
sure that the result of expanding a BIT_CONVERT node is itself legalized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25538
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 07:30:14 +0000 (07:30 +0000)]
Testcase that failed due to a legalizer bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25537
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 07:21:12 +0000 (07:21 +0000)]
this option is gone, the dag isel is the default now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25536
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 23 Jan 2006 07:21:01 +0000 (07:21 +0000)]
Remove a couple of unnecessary #include's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25535
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 07:20:15 +0000 (07:20 +0000)]
remove the V8 simple isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25534
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 07:07:51 +0000 (07:07 +0000)]
make this test harder
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25533
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 23 Jan 2006 07:01:07 +0000 (07:01 +0000)]
Factor out more instruction scheduler code to the base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25532
91177308-0d34-0410-b5e6-
96231b3b80d8
Duraid Madina [Mon, 23 Jan 2006 06:47:56 +0000 (06:47 +0000)]
don't need this any more; the "#define hashes to trees" hack is coming
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25531
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 06:24:46 +0000 (06:24 +0000)]
add a bunch more optimizations for unary double math functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25530
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 06:24:17 +0000 (06:24 +0000)]
add new tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25529
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 06:24:09 +0000 (06:24 +0000)]
add checks for new functions. I'd appreciate it if someone could regen
the configure script :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25528
91177308-0d34-0410-b5e6-
96231b3b80d8
Duraid Madina [Mon, 23 Jan 2006 06:11:45 +0000 (06:11 +0000)]
die, die!! r15, you are not callee-saved
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25527
91177308-0d34-0410-b5e6-
96231b3b80d8
Duraid Madina [Mon, 23 Jan 2006 06:08:46 +0000 (06:08 +0000)]
fix register corruption! (my god.) r15 is a scratch reg, using that as
a frame pointer is a pretty doofus thing to do. use r5 instead, and
mark it callee-saved, coz that's what it is!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25526
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 05:57:36 +0000 (05:57 +0000)]
Refactor/genericize this, no functionality change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25525
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 05:56:34 +0000 (05:56 +0000)]
Make sure this tests the right thing, xfail on solaris, which doesn't have floorf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25524
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 05:22:07 +0000 (05:22 +0000)]
Fix bugs lowering stackrestore, fixing 2004-08-12-InlinerAndAllocas.c on
PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25522
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 01:01:04 +0000 (01:01 +0000)]
Speedup and simplify pass registration by the observation that there is
exactly one PassInfo object per RegisterPass object and that their lifetimes
are the same. As such, there is no reason for the RegisterPass object to
dynamically allocate the PassInfo object at compiler startup time: just inline
the object by-value. This should reduce codesize, heap size, and startup time. Yaay.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25521
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 00:38:14 +0000 (00:38 +0000)]
Remove dead #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25520
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 00:36:05 +0000 (00:36 +0000)]
It doesn't make sense to give llc a list of passes on the command line,
LLVM doesn't use it and it can't work anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25519
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2006 00:32:33 +0000 (00:32 +0000)]
this doesn't work, remove it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25518
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 23:43:45 +0000 (23:43 +0000)]
This only needs <iosfwd> not <iostream>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25517
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 23:41:42 +0000 (23:41 +0000)]
Add #include of <iostream>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25516
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 23:41:00 +0000 (23:41 +0000)]
Add explicit #includes of <iostream>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25515
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 23:32:06 +0000 (23:32 +0000)]
Make iostream #inclusion explicit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25514
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 23:19:18 +0000 (23:19 +0000)]
Add explicit iostream #includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25513
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 23:10:26 +0000 (23:10 +0000)]
Make this more efficient in the following ways:
1. Do not statically construct a map when the program starts up, this
is expensive and cannot be optimized. Instead, create a list.
2. Do not insert entries for all function in the module into a hashmap
that lives the full life of the compiler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25512
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 22:54:51 +0000 (22:54 +0000)]
This header should not pull in <iostream>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25511
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 22:53:40 +0000 (22:53 +0000)]
add explicit #includes of iostream
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25510
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 22:53:01 +0000 (22:53 +0000)]
Add explicit #includes of <iostream>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25509
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Jan 2006 22:35:08 +0000 (22:35 +0000)]
Several non-functionality changing changes:
1. Use the varargs version of getOrInsertFunction to simplify code.
2. remove #include
3. Reduce the number of #ifdef's.
4. remove extraneous vertical whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25508
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sun, 22 Jan 2006 20:37:25 +0000 (20:37 +0000)]
Visual Studio still has issues at being left out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25507
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sun, 22 Jan 2006 20:36:43 +0000 (20:36 +0000)]
Visual Studio neurotic about inconsistent class/struct usage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25506
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Jan 2006 19:12:11 +0000 (19:12 +0000)]
Fix a bug in a recent refactor that caused a bunch of programs to miscompile
or the compiler to crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25503
91177308-0d34-0410-b5e6-
96231b3b80d8
Duraid Madina [Sat, 21 Jan 2006 14:27:19 +0000 (14:27 +0000)]
insignificant, but next up is proper stack frame layout!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25497
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Jan 2006 04:27:00 +0000 (04:27 +0000)]
Fix CodeGen/PowerPC/2006-01-20-ShiftPartsCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25496
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Jan 2006 04:25:07 +0000 (04:25 +0000)]
new testcase that crashes llc for ppc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25495
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 21 Jan 2006 02:55:41 +0000 (02:55 +0000)]
Rename fcmovae to fcmovnb and fcmova to fcmovnbe (following Intel manual).
Some assemblers can't recognize the aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25494
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 21 Jan 2006 02:32:06 +0000 (02:32 +0000)]
Do some code refactoring on Jim's scheduler in preparation of the new list
scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25493
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Jan 2006 01:35:26 +0000 (01:35 +0000)]
trivial formatting improvement: don't insert extra blank lines between .comm
vars.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25492
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Sat, 21 Jan 2006 01:13:18 +0000 (01:13 +0000)]
Simplify search for abbreviations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25491
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Sat, 21 Jan 2006 00:59:54 +0000 (00:59 +0000)]
Correct some simple errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25490
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Fri, 20 Jan 2006 21:02:36 +0000 (21:02 +0000)]
Right size integer values before emitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25489
91177308-0d34-0410-b5e6-
96231b3b80d8