Chris Lattner [Fri, 28 Mar 2008 06:45:13 +0000 (06:45 +0000)]
make memset inference significantly more powerful: it can now handle
memsets that initialize "structs of arrays" and other store sequences
that are not sequential. This is still only enabled if you pass
-form-memset-from-stores. The flag is not heavily tested and I haven't
analyzed the perf regressions when -form-memset-from-stores is passed
either, but this causes no make check regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48909
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 28 Mar 2008 06:34:23 +0000 (06:34 +0000)]
New entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48908
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 28 Mar 2008 06:22:23 +0000 (06:22 +0000)]
Simplify the conversion from "0x" numbers to a single digit number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48907
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 27 Mar 2008 20:23:40 +0000 (20:23 +0000)]
Implement LegalizeTypes support for softfloat LOAD.
In order to handle indexed nodes I had to introduce
a new constructor, and since I was there I factorized
the code in the various load constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48894
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 27 Mar 2008 19:56:19 +0000 (19:56 +0000)]
Avoid creating chain dependencies from CopyToReg nodes to load and store
nodes. This doesn't currently have much impact the generated code, but it
does produce simpler-looking SelectionDAGs, and consequently
simpler-looking ScheduleDAGs, because there are fewer spurious
dependencies.
In particular, CopyValueToVirtualRegister now uses the entry node as the
input chain dependency for new CopyToReg nodes instead of calling getRoot
and depending on the most recent memory reference.
Also, rename UnorderedChains to PendingExports and pull it up from being
a local variable in SelectionDAGISel::BuildSelectionDAG to being a
member variable of SelectionDAGISel, so that it doesn't have to be
passed around to all the places that need it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48893
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 27 Mar 2008 17:32:46 +0000 (17:32 +0000)]
PHI->removeIncomingValue may remove PHInode.
Increment iterator in advance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48890
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 27 Mar 2008 17:13:55 +0000 (17:13 +0000)]
add another testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48881
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Thu, 27 Mar 2008 09:53:47 +0000 (09:53 +0000)]
Fix build breakage on Windows with GCC 4.3. References bug #2176.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48874
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Levenstein [Thu, 27 Mar 2008 09:44:37 +0000 (09:44 +0000)]
Fix spelling. Thanks, Duncan! :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48873
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Levenstein [Thu, 27 Mar 2008 09:14:57 +0000 (09:14 +0000)]
Speed-up the SumOfUnscheduledPredsOfSuccs by introducing a new function
called LimitedSumOfUnscheduledPredsOfSuccs. It terminates the computation
after a given treshold is reached. This new function is always faster, but
brings real wins only on bigger test-cases.
The old function SumOfUnscheduledPredsOfSuccs is left in-place for now and therefore a warning about an unused static function is produced.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48872
91177308-0d34-0410-b5e6-
96231b3b80d8
Erick Tryzelaar [Thu, 27 Mar 2008 08:18:07 +0000 (08:18 +0000)]
Adding the first two chapters of the ocaml/kaleidoscope tutorial.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48871
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 27 Mar 2008 02:43:03 +0000 (02:43 +0000)]
when a node is removed from an ilist, set its next/prev pointers to
null. This means that uses of invalidated iterators will explode violently
with:
ilist:143: failed assertion `NodePtr && "++'d off the end of an ilist!"'
instead of happening to work "most of the time".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48859
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 27 Mar 2008 01:51:31 +0000 (01:51 +0000)]
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48858
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 27 Mar 2008 01:45:11 +0000 (01:45 +0000)]
Code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48856
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 27 Mar 2008 01:41:09 +0000 (01:41 +0000)]
Allow certain lea instructions to be rematerialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48855
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 27 Mar 2008 01:30:24 +0000 (01:30 +0000)]
Remove an unused command line option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48854
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 27 Mar 2008 01:27:25 +0000 (01:27 +0000)]
Fix a memory bug: increment an iterator of a deleted machine instr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48853
91177308-0d34-0410-b5e6-
96231b3b80d8
Erick Tryzelaar [Thu, 27 Mar 2008 00:27:14 +0000 (00:27 +0000)]
Expose ExecutionEngine::getTargetData() to c and ocaml bindings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48851
91177308-0d34-0410-b5e6-
96231b3b80d8
Chuck Rose III [Thu, 27 Mar 2008 00:02:53 +0000 (00:02 +0000)]
Updating win32 VStudio project files with new file references and removing dead references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48849
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 26 Mar 2008 23:31:39 +0000 (23:31 +0000)]
Fix a bug in Darwin EH: FDE->CIE pointer must
be relocatable. Describe why .set is needed better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48848
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Wed, 26 Mar 2008 21:37:43 +0000 (21:37 +0000)]
Another test commit (with git-svn)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48843
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Wed, 26 Mar 2008 21:18:58 +0000 (21:18 +0000)]
Test commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48840
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 26 Mar 2008 20:15:49 +0000 (20:15 +0000)]
One more coalescer fix wrt deadness propagation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48837
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 26 Mar 2008 19:03:01 +0000 (19:03 +0000)]
Avoid commuting a def MI in order to coalesce a copy instruction away if any use of the same val# is a copy instruction that has already been coalesced.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48833
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Levenstein [Wed, 26 Mar 2008 12:39:26 +0000 (12:39 +0000)]
Use a linked data structure for the uses lists of an SDNode, just like
LLVM Value/Use does and MachineRegisterInfo/MachineOperand does.
This allows constant time for all uses list maintenance operations.
The idea was suggested by Chris. Reviewed by Evan and Dan.
Patch is tested and approved by Dan.
On normal use-cases compilation speed is not affected. On very big basic
blocks there are compilation speedups in the range of 15-20% or even better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48822
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Levenstein [Wed, 26 Mar 2008 11:23:38 +0000 (11:23 +0000)]
Fixed some spelling errors. Thanks, Duncan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48819
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Levenstein [Wed, 26 Mar 2008 09:18:09 +0000 (09:18 +0000)]
Some improvements related to the computation of isReachable.
This fixes Bugzilla #1835 (http://llvm.org/bugs/show_bug.cgi?id=1835).
This patched is reviewed by Tanya and Dan. Dan tested and approved it.
The reason for the bad performance of the old algorithm is that it is very naive and scans every
time all nodes of the DAG in the worst case.
This patch introduces a new algorithm based on the paper "Online algorithms
for maintaining the topological order of a directed acyclic graph" by
David J.Pearce and Paul H.J.Kelly. This is the MNR algorithm. It has a
linear time worst-case and performs much better in most situations.
The paper can be found here:
http://fano.ics.uci.edu/cites/Document/Online-algorithms-for-maintaining-the-topological-order-of-a-directed-acyclic-graph.html
The main idea of the new algorithm is to compute the topological ordering of the SNodes in the
DAG and to maintain it even after DAG modifications. The topological ordering allows for very fast
node reachability checks.
Tests on very big input files with tens of thousands of instructions in a BB indicate huge
speed-ups (up to 10x compilation time improvement) compared to the old version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48817
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 26 Mar 2008 08:11:49 +0000 (08:11 +0000)]
Fix some SSE4.1 instruction encoding bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48815
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 26 Mar 2008 03:03:23 +0000 (03:03 +0000)]
Dead PHI instructions need to be handled specially.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48811
91177308-0d34-0410-b5e6-
96231b3b80d8
Erick Tryzelaar [Wed, 26 Mar 2008 00:38:56 +0000 (00:38 +0000)]
Test commit (removed trailing whitespace)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48809
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 25 Mar 2008 23:29:30 +0000 (23:29 +0000)]
Use ## for comment delimiter on darwin x86-32, so
llvm's output .s files will go through gcc -std=c99
without triggering preprocesser errors. Approach
suggested by Daveed Vandevoorde.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48808
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 25 Mar 2008 22:29:46 +0000 (22:29 +0000)]
Smaller function alignment when optimizing for size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48805
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 25 Mar 2008 22:28:39 +0000 (22:28 +0000)]
Rename option -optimizefor-size to -optimize-size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48804
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 25 Mar 2008 22:26:43 +0000 (22:26 +0000)]
Remove some debugging code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48803
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 25 Mar 2008 22:25:27 +0000 (22:25 +0000)]
StrongPHIElimination doesn't support swapping live intervals like the coalescer does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48802
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 25 Mar 2008 22:06:05 +0000 (22:06 +0000)]
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48801
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 25 Mar 2008 21:45:14 +0000 (21:45 +0000)]
A quick nm audit turned up several fixed tables and objects that were
marked read-write. Use const so that they can be allocated in a
read-only segment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48800
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 25 Mar 2008 21:38:12 +0000 (21:38 +0000)]
Avoid outputing spaces at the ends of lines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48797
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 25 Mar 2008 21:03:02 +0000 (21:03 +0000)]
Do not align loops if optimizing for size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48794
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 25 Mar 2008 21:02:35 +0000 (21:02 +0000)]
Add optimize-for-size knob.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48793
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 25 Mar 2008 20:08:07 +0000 (20:08 +0000)]
Handle a special case xor undef, undef -> 0. Technically this should be transformed to undef. But this is such a common idiom (misuse) we are going to handle it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48792
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 25 Mar 2008 20:07:13 +0000 (20:07 +0000)]
Handle a special case xor undef, undef -> 0. Technically this should be transformed to undef. But this is such a common idiom (misuse) we are going to handle it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48791
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 25 Mar 2008 18:53:36 +0000 (18:53 +0000)]
Fix the Cygwin/Mingw-On-Cygwin build. Patch by Alain Frisch!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48786
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Mar 2008 18:16:52 +0000 (18:16 +0000)]
De-constify the input to the "operator >>" method as it is modified.
Patch by dekruijf@cs.wisc.edu!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48782
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 25 Mar 2008 17:10:29 +0000 (17:10 +0000)]
Fix typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48779
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 25 Mar 2008 16:53:19 +0000 (16:53 +0000)]
Add CMP32mr and friends to the load-unfolding table. Among
other things, this allows the scheduler to unfold a load operand
in the 2008-01-08-SchedulerCrash.ll testcase, so it now successfully
clones the comparison to avoid a pushf+popf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48777
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Tue, 25 Mar 2008 16:35:08 +0000 (16:35 +0000)]
Tests for the instruction iterator bindings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48775
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Tue, 25 Mar 2008 16:26:51 +0000 (16:26 +0000)]
Extend the builder interface to use the new instruction positioning code.
This adds support for instruction iterators, as well as rewriting the
builder code to use these new functions. This lets us eliminate the C
bindings for moving around the builder.
Patch by Erick Tryzelaar!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48774
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 25 Mar 2008 09:12:48 +0000 (09:12 +0000)]
Fix PR2062: Don't build Intrinsics.gen in the source directory. Do it in the
object directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48766
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Tue, 25 Mar 2008 05:05:58 +0000 (05:05 +0000)]
Disable building llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48764
91177308-0d34-0410-b5e6-
96231b3b80d8
Sam Bishop [Tue, 25 Mar 2008 04:41:18 +0000 (04:41 +0000)]
Make a note of the fact that EmitOwnedPtr() has nothing to do with the
OwningPtr<> class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48763
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Tue, 25 Mar 2008 04:26:08 +0000 (04:26 +0000)]
Byebye llvm-upgrade!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 25 Mar 2008 02:02:19 +0000 (02:02 +0000)]
lastRegisterUse() should ignore identity copies. Those will be erased.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48759
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 25 Mar 2008 00:47:49 +0000 (00:47 +0000)]
check struct layout
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48758
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 24 Mar 2008 23:55:16 +0000 (23:55 +0000)]
Remove an unneeded test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48755
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 24 Mar 2008 23:36:49 +0000 (23:36 +0000)]
Add \t after .set. Fix by Jay Freeman.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48753
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 24 Mar 2008 23:31:21 +0000 (23:31 +0000)]
If the coalescer commuted a def MI to allow coalescing, it can changed a previously coalesced copy into an non-identity copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48752
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 24 Mar 2008 23:28:21 +0000 (23:28 +0000)]
Add an assertion to catch register of illegal class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48751
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 24 Mar 2008 23:16:37 +0000 (23:16 +0000)]
Use the bit size of the operand instead of the hard-coded 32 to generate the
mask.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48750
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 24 Mar 2008 22:16:14 +0000 (22:16 +0000)]
With debug info, there are nameless constant global values. do not crash when we hit one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48749
91177308-0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Mon, 24 Mar 2008 22:01:58 +0000 (22:01 +0000)]
Add file to project.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48747
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 24 Mar 2008 21:52:23 +0000 (21:52 +0000)]
- SSE4.1 extractfps extracts a f32 into a gr32 register. Very useful! Not. Fix the instruction specification and teaches lowering code to use it only when the only use is a store instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48746
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 24 Mar 2008 21:38:01 +0000 (21:38 +0000)]
Oops. I wanted the compile flags for C++, not the C preprocessor flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48744
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 24 Mar 2008 21:29:58 +0000 (21:29 +0000)]
Revert r48676. I had plans for using it, but now it's just dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48743
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 24 Mar 2008 20:52:42 +0000 (20:52 +0000)]
void type is also a valid function return type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48740
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 24 Mar 2008 20:36:47 +0000 (20:36 +0000)]
Remove #include<iostream>, which I was using for debugging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48739
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 24 Mar 2008 20:16:14 +0000 (20:16 +0000)]
Add incoming value from header only if phi node has any use inside the loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48738
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Mon, 24 Mar 2008 18:29:32 +0000 (18:29 +0000)]
Added Passes.html to the documentation list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48736
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 24 Mar 2008 18:10:52 +0000 (18:10 +0000)]
Fix typo. Clarify underlying message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48734
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 24 Mar 2008 18:08:07 +0000 (18:08 +0000)]
Fix test name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48733
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 24 Mar 2008 17:41:57 +0000 (17:41 +0000)]
apparently tclsh doesn't lex like bash. Weird.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48732
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 24 Mar 2008 17:36:38 +0000 (17:36 +0000)]
pass the option so this test tests the right thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48731
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 24 Mar 2008 17:16:39 +0000 (17:16 +0000)]
Add new test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48730
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 24 Mar 2008 16:58:44 +0000 (16:58 +0000)]
Remove an unnecessary #include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48729
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 24 Mar 2008 16:58:20 +0000 (16:58 +0000)]
Remove incorrect comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48728
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 24 Mar 2008 16:55:58 +0000 (16:55 +0000)]
Shrink the size of AllocationInst by using its SubclassData
field to store the alignment value instead of haing a
separate field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48727
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 24 Mar 2008 16:38:05 +0000 (16:38 +0000)]
APIntify SelectionDAG's EXTRACT_ELEMENT code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48726
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 24 Mar 2008 06:37:48 +0000 (06:37 +0000)]
Increasing the inline limit from (overly conservative) 200 to 300. Given each BB costs 20 and each instruction costs 5, 200 means a 4 BB function + 24 instructions (actually less because caller's size also contributes to it).
Furthermore, double the limit when more than 10% of the callee instructions are vector instructions. Multimedia kernels tend to love inlining.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48725
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 24 Mar 2008 05:58:47 +0000 (05:58 +0000)]
Small format/grammar changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48723
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 24 Mar 2008 05:55:54 +0000 (05:55 +0000)]
Grammar Nazi strikes! :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48722
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 24 Mar 2008 05:35:41 +0000 (05:35 +0000)]
Update Function type documentation to clarify how multiple return values are supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48721
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 24 Mar 2008 05:28:38 +0000 (05:28 +0000)]
Temporarily disabling memset forming optimization. Add an option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48720
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 24 Mar 2008 04:11:27 +0000 (04:11 +0000)]
Be sure to remove intervals after we've joined them. Also, remove some duplicated code.
With this pass, StrongPHIElim can compile very simple testcases correctly. There's still a ways
to go before it's ready for prime time, though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48719
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Mon, 24 Mar 2008 03:43:50 +0000 (03:43 +0000)]
Ignoring per-user file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48718
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Mon, 24 Mar 2008 03:42:32 +0000 (03:42 +0000)]
Ignoring generated files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48717
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 24 Mar 2008 00:21:34 +0000 (00:21 +0000)]
Transform (zext (or (icmp), (icmp))) to (or (zext (cimp), (zext icmp))) if at least one of the (zext icmp) can be transformed to eliminate an icmp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48715
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 23 Mar 2008 22:56:07 +0000 (22:56 +0000)]
Remove duplicated entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48714
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sun, 23 Mar 2008 22:52:51 +0000 (22:52 +0000)]
Another typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48713
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sun, 23 Mar 2008 22:37:22 +0000 (22:37 +0000)]
Fix a typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48712
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sun, 23 Mar 2008 22:21:29 +0000 (22:21 +0000)]
Objective Caml bindings for basic block, function, global, and arg iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48711
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 20:32:06 +0000 (20:32 +0000)]
Minor typo fixes. Also add another FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48710
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sun, 23 Mar 2008 16:49:47 +0000 (16:49 +0000)]
Update project to reflect deleted files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48709
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 16:03:00 +0000 (16:03 +0000)]
Preserve calling convention during function cloning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48708
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 14:53:18 +0000 (14:53 +0000)]
Add license header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48707
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 14:44:32 +0000 (14:44 +0000)]
Add Win64 compilation callback. This allows easy examples to be JITed on Win64!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48706
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 13:44:17 +0000 (13:44 +0000)]
Use C-style comments :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48705
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 13:43:47 +0000 (13:43 +0000)]
Provide a JIT selector on win64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48704
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 13:41:18 +0000 (13:41 +0000)]
Hack out the PIC mode on Win64 targets. This needs to be investigated later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48703
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 13:40:45 +0000 (13:40 +0000)]
Code cleanup. Provide generic way of selecting JIT pointer bitwidth regardless
of compiler used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48702
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 23 Mar 2008 12:32:54 +0000 (12:32 +0000)]
Remove old-standing obsolete code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48701
91177308-0d34-0410-b5e6-
96231b3b80d8