Chris Lattner [Sun, 14 Dec 2008 21:37:33 +0000 (21:37 +0000)]
silence warning when asserts disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61013
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2008 21:36:23 +0000 (21:36 +0000)]
eliminate warning when asserts disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61012
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2008 21:20:46 +0000 (21:20 +0000)]
another random testcase that shouldn't crash gvn and is
good for coverage with future changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61011
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 14 Dec 2008 21:08:48 +0000 (21:08 +0000)]
Clarify the meaning of the NoAlias response. The plan is to refer to this from
a future version of LangRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61010
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Sun, 14 Dec 2008 19:10:35 +0000 (19:10 +0000)]
Generalize GVN's phi construciton routine to work for things other than loads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61009
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sun, 14 Dec 2008 09:43:15 +0000 (09:43 +0000)]
Reapply r60997, this time without forgetting that
target constants are allowed to have an illegal
type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61006
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sun, 14 Dec 2008 08:01:51 +0000 (08:01 +0000)]
Fixed HTML validator warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61005
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sun, 14 Dec 2008 07:20:36 +0000 (07:20 +0000)]
CSS cleanup:
* Lowercased all HTML element names
* Standardized spacing around { and }
* removed class "doc_table_nw": grep finds no uses
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61004
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 13 Dec 2008 23:53:00 +0000 (23:53 +0000)]
Temporarily revert r60997. It was causing this failure:
Running /Users/void/llvm/llvm.src/test/CodeGen/Generic/dg.exp ...
FAIL: /Users/void/llvm/llvm.src/test/CodeGen/Generic/asm-large-immediate.ll
Failed with exit(1) at line 1
while running: llvm-as < /Users/void/llvm/llvm.src/test/CodeGen/Generic/asm-large-immediate.ll | llc | /usr/bin/grep
68719476738
Assertion failed: ((TypesNeedLegalizing || getTypeAction(VT) == Legal) && "Illegal type introduced after type legalization?"), function HandleOp, file /Users/void/llvm/llvm.src/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp, line 493.
0 llc 0x0085392e char const* std::find<char const*, char>(char const*, char const*, char const&) + 98
1 llc 0x00853e63 llvm::sys::PrintStackTraceOnErrorSignal() + 593
2 libSystem.B.dylib 0x96cac09b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp +
1765097359
4 libSystem.B.dylib 0x96d24ec2 raise + 26
5 libSystem.B.dylib 0x96d3447f abort + 73
6 libSystem.B.dylib 0x96d26063 __assert_rtn + 101
7 llc 0x004f9018 llvm::cast_retty<llvm::SubprogramDesc, llvm::DebugInfoDesc*>::ret_type llvm::cast<llvm::Sub
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61001
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sat, 13 Dec 2008 22:33:38 +0000 (22:33 +0000)]
LegalizeDAG is not supposed to introduce illegal
types into the DAG if they were not already there.
Check this with an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60997
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 13 Dec 2008 21:04:20 +0000 (21:04 +0000)]
RLE isn't smart enough to eliminate this safely yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60994
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 13 Dec 2008 18:47:40 +0000 (18:47 +0000)]
rename some tests to be more uniform in naming convention.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60988
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 13 Dec 2008 18:39:44 +0000 (18:39 +0000)]
gvn should never crash on this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60987
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 13 Dec 2008 18:37:58 +0000 (18:37 +0000)]
These messages should always be emitted when NDEBUG is unset, not when
NDEBUG is unset and -debug is passed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60986
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sat, 13 Dec 2008 17:51:47 +0000 (17:51 +0000)]
Add a comment to the auto-generated docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60985
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sat, 13 Dec 2008 17:50:58 +0000 (17:50 +0000)]
Merge llvm-rst.css and llvm.css.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60984
91177308-0d34-0410-b5e6-
96231b3b80d8
Cedric Venet [Sat, 13 Dec 2008 10:55:13 +0000 (10:55 +0000)]
Add explicit this-> for some member function in templated base class.
These call are probably dependent but VS with /Za don't seems to think so. We need to help him.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60978
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 13 Dec 2008 09:28:44 +0000 (09:28 +0000)]
Temporarily revert r60973. It's inexplicably causing a failure when self-hosting LLVM:
llvm[2]: Linking Release executable opt (without symbols)
...
Undefined symbols:
"llvm::APFloat::IEEEsingle", referenced from:
__ZN4llvm7APFloat10IEEEsingleE$non_lazy_ptr in libLLVMCore.a(Constants.o)
__ZN4llvm7APFloat10IEEEsingleE$non_lazy_ptr in libLLVMCore.a(AsmWriter.o)
__ZN4llvm7APFloat10IEEEsingleE$non_lazy_ptr in libLLVMCore.a(ConstantFold.o)
"llvm::APFloat::IEEEdouble", referenced from:
__ZN4llvm7APFloat10IEEEdoubleE$non_lazy_ptr in libLLVMCore.a(Constants.o)
__ZN4llvm7APFloat10IEEEdoubleE$non_lazy_ptr in libLLVMCore.a(AsmWriter.o)
__ZN4llvm7APFloat10IEEEdoubleE$non_lazy_ptr in libLLVMCore.a(ConstantFold.o)
ld: symbol(s) not found
This is in release mode. To replicate, compile llvm and llvm-gcc in optimized
mode. Then build llvm, in optimized mode, with the newly created compiler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60977
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Sat, 13 Dec 2008 08:25:29 +0000 (08:25 +0000)]
Fix getFieldAs() to use the parameter instead of 6.
Add missing DIType constructor, needed by DIVariable::getType().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60976
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Sat, 13 Dec 2008 08:16:43 +0000 (08:16 +0000)]
Remove assertion to allow promotion of a truncating store operand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60975
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Sat, 13 Dec 2008 08:15:14 +0000 (08:15 +0000)]
Added basic support for expanding VSETCC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60974
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 13 Dec 2008 07:22:47 +0000 (07:22 +0000)]
make RLE preserve the name of the load that it replaces. This is just
a pretification of the IR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60973
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sat, 13 Dec 2008 07:18:38 +0000 (07:18 +0000)]
On big-endian machines it is wrong to do a full
width register load followed by a truncating
store for the copy, since the load will not place
the value in the lower bits. Probably partial
loads/stores can never happen here, but fix it
anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60972
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sat, 13 Dec 2008 05:21:37 +0000 (05:21 +0000)]
Fix spelling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60971
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sat, 13 Dec 2008 03:11:37 +0000 (03:11 +0000)]
Some more documentation tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60970
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sat, 13 Dec 2008 02:28:58 +0000 (02:28 +0000)]
More cosmetic tweaks for llvmc docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60969
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 12 Dec 2008 22:42:35 +0000 (22:42 +0000)]
Re-enable test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60968
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 12 Dec 2008 21:57:54 +0000 (21:57 +0000)]
Do not print empty DW_AT_comp_dir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60965
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 12 Dec 2008 21:47:02 +0000 (21:47 +0000)]
When expanding unaligned loads and stores do not make
use of illegal integer types: instead, use a stack slot
and copying via integer registers. The existing code
is still used if the bitconvert is to a legal integer
type.
This fires on the PPC testcases 2007-09-08-unaligned.ll
and vec_misaligned.ll. It looks like equivalent code
is generated with these changes, just permuted, but
it's hard to tell.
With these changes, nothing in LegalizeDAG produces
illegal integer types anymore. This is a prerequisite
for removing the LegalizeDAG type legalization code.
While there I noticed that the existing code doesn't
handle trunc store of f64 to f32: it turns this into
an i64 store, which represents a 4 byte stack smash.
I added a FIXME about this. Hopefully someone more
motivated than I am will take care of it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60964
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 12 Dec 2008 21:15:41 +0000 (21:15 +0000)]
- Use patterns instead of creating completely new instruction matching patterns,
which are identical to the original patterns.
- Change the multiply with overflow so that we distinguish between signed and
unsigned multiplication. Currently, unsigned multiplication with overflow
isn't working!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60963
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 12 Dec 2008 19:08:08 +0000 (19:08 +0000)]
XFAIL these tests for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60959
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 12 Dec 2008 18:49:09 +0000 (18:49 +0000)]
Fix add/sub expansion: don't create ADD / SUB with two results (seems like everyone is doing this these days :-). Patch by Daniel M Gessel!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60958
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 12 Dec 2008 17:09:07 +0000 (17:09 +0000)]
Revert my re-instated reverted commit, fixes the bootstrap build on x86-64 linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60951
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 12 Dec 2008 08:13:38 +0000 (08:13 +0000)]
When using a 4 byte jump table on a 64 bit machine,
do an extending load of the 4 bytes rather than a
potentially illegal (type) i32 load followed by a
sign extend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60945
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 12 Dec 2008 08:05:40 +0000 (08:05 +0000)]
Don't make use of an illegal type (i64) when
lowering f64 function arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60944
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2008 04:20:01 +0000 (04:20 +0000)]
fix some incorrect links.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60919
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Fri, 12 Dec 2008 02:34:56 +0000 (02:34 +0000)]
Man page update.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60918
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Fri, 12 Dec 2008 01:25:51 +0000 (01:25 +0000)]
Added support for SELECT v8i8 v4i16 for X86 (MMX)
Added support for TRUNC v8i16 to v8i8 for X86 (MMX)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60916
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 12 Dec 2008 00:56:36 +0000 (00:56 +0000)]
Redo the arithmetic with overflow architecture. I was changing the semantics of
ISD::ADD to emit an implicit EFLAGS. This was horribly broken. Instead, replace
the intrinsic with an ISD::SADDO node. Then custom lower that into an
X86ISD::ADD node with a associated SETCC that checks the correct condition code
(overflow or carry). Then that gets lowered into the correct X86::ADDOvf
instruction.
Similar for SUB and MUL instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60915
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Thu, 11 Dec 2008 23:43:14 +0000 (23:43 +0000)]
Fix W3C validator errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60912
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Thu, 11 Dec 2008 23:33:33 +0000 (23:33 +0000)]
Use correct file for the llvmc tutorial.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60910
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Thu, 11 Dec 2008 23:24:40 +0000 (23:24 +0000)]
Update the auto-generated llvmc documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60909
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Thu, 11 Dec 2008 22:19:14 +0000 (22:19 +0000)]
Add a '-Wo,' option that passes options to opt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60902
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 11 Dec 2008 22:02:02 +0000 (22:02 +0000)]
Fix a 80 col. violation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60901
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 11 Dec 2008 19:44:51 +0000 (19:44 +0000)]
* Removed stray </p> tag
* Whitespace cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60891
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 11 Dec 2008 19:37:04 +0000 (19:37 +0000)]
* <div align=center> is not valid HTML 4.01 - removed alignment
* <sup> cannot appear inside a <pre> - replaced <pre> with <tt> and <br>
* Added standard "Notes" section
* Sprinkled fixed-width <tt> tags in a few places for consistency
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60889
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 11 Dec 2008 18:23:24 +0000 (18:23 +0000)]
Removed warnings from HTML 4.01 validator: trailing slashes in <br> and <img>
tags are not needed in HTML, only XML.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60885
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 11 Dec 2008 18:14:06 +0000 (18:14 +0000)]
Conform to the HTML 4.01 Strict specification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60884
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 11 Dec 2008 17:40:14 +0000 (17:40 +0000)]
Sneaky, sneaky: move the -1 to the outside of the SMax. Reinstate the
optimization of SGE/SLE with unit stride, now that it works properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60881
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 11 Dec 2008 17:34:48 +0000 (17:34 +0000)]
Global replace of yellow W3C "valid HTML/CSS" icons with blue ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60880
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 11 Dec 2008 17:12:52 +0000 (17:12 +0000)]
* Fixed formatting of command descriptions to be consistent:
- descriptions on new line
- no terminating period
* Changed the W3C logos from yellow to blue to not stand out
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60879
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Thu, 11 Dec 2008 11:44:49 +0000 (11:44 +0000)]
fix grammar, thanks Duncan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60875
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Thu, 11 Dec 2008 10:38:06 +0000 (10:38 +0000)]
Merge Base.td and Tools.td.
This stuff is not used outside Base.td, and with the conversion of the
compilation graph to string-based format became much less (if at all)
useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60873
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Thu, 11 Dec 2008 10:36:07 +0000 (10:36 +0000)]
introduce BasicBlock::getUniquePredecessor()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60872
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Thu, 11 Dec 2008 10:34:18 +0000 (10:34 +0000)]
Put Edge* classes into anonymous namespace.
Prevents conflicts between plugins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60871
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Thu, 11 Dec 2008 03:30:13 +0000 (03:30 +0000)]
Avoid generating a convert_rndsat node when the src and dest type are the same.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60869
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 11 Dec 2008 01:26:44 +0000 (01:26 +0000)]
Clarify FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60867
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Thu, 11 Dec 2008 00:44:22 +0000 (00:44 +0000)]
Whitespace clean up (tabs with spaces)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60866
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Thu, 11 Dec 2008 00:26:16 +0000 (00:26 +0000)]
Make fix for r60829 less conservative to allow the proper optimization for
vec_extract-sse4.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60865
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 10 Dec 2008 23:24:43 +0000 (23:24 +0000)]
Add a newline after this debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60861
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Wed, 10 Dec 2008 23:07:02 +0000 (23:07 +0000)]
s/A Few Coding Standards/LLVM Coding Standards/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60859
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 10 Dec 2008 22:36:00 +0000 (22:36 +0000)]
If ADD, SUB, or MUL have an overflow bit that's used, don't do transformation on
them. The DAG combiner expects that nodes that are transformed have one value
result.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60857
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 10 Dec 2008 21:54:21 +0000 (21:54 +0000)]
Preliminary ARM debug support based on patch by Mikael of FlexyCore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60851
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 10 Dec 2008 21:49:05 +0000 (21:49 +0000)]
Some code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60850
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 10 Dec 2008 19:44:24 +0000 (19:44 +0000)]
Only perform SETO/SETC to JO/JC conversion if extractvalue is coming from an arithmetic with overflow instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60844
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Wed, 10 Dec 2008 16:11:10 +0000 (16:11 +0000)]
fix typo. thanks Baldrick for noticing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60841
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Wed, 10 Dec 2008 16:01:22 +0000 (16:01 +0000)]
add gcc 4.1.2 from redhat to the list of broken compilers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60840
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 10 Dec 2008 14:24:58 +0000 (14:24 +0000)]
Update these instructions to the 2.4 release.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60838
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 10 Dec 2008 12:30:42 +0000 (12:30 +0000)]
For amusement, implement SADDO, SSUBO, UADDO, USUBO
for promoted integer types, eg: i16 on ppc-32, or
i24 on any platform. Complete support for arbitrary
precision integers would require handling expanded
integer types, eg: i128, but I couldn't be bothered.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60834
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 10 Dec 2008 10:50:58 +0000 (10:50 +0000)]
Mention the Ada and Fortran front-ends.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60833
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 10 Dec 2008 09:38:36 +0000 (09:38 +0000)]
Don't dereference the end() iterator. This was
causing a bunch of failures when running
"make ENABLE_EXPENSIVE_CHECKS=1 check".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60832
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Wed, 10 Dec 2008 08:55:09 +0000 (08:55 +0000)]
Added a little more information that vector shifts require vector shift amount.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60831
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Wed, 10 Dec 2008 03:59:02 +0000 (03:59 +0000)]
Fixed a bug when trying to optimize a extract vector element of a
bit convert that changes the number of elements of a shuffle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60829
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 10 Dec 2008 02:32:19 +0000 (02:32 +0000)]
Fix MachineCodeEmitter to use uintptr_t instead of intptr_t. This avoids some overflow issues. Patch by Thomas Jablin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60828
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 10 Dec 2008 02:01:32 +0000 (02:01 +0000)]
Whitespace changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60826
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 10 Dec 2008 01:58:32 +0000 (01:58 +0000)]
Rewrite instructions for configuring external tests
to reflect reality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60825
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 10 Dec 2008 01:33:59 +0000 (01:33 +0000)]
Fix a bug introduced by r59265. If lazy compilation is disabled, return actual function ptr instead of ptr to stub if function is already compiled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60822
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2008 01:30:48 +0000 (01:30 +0000)]
move an entry, add some notes, remove a completed item (IMPLICIT_DEF)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60821
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2008 01:04:47 +0000 (01:04 +0000)]
Allow basicaa to walk through geps with identical indices in
parallel, allowing it to decide that P/Q must alias if A/B
must alias in things like:
P = gep A, 0, i, 1
Q = gep B, 0, i, 1
This allows GVN to delete 62 more instructions out of 403.gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60820
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 10 Dec 2008 00:28:22 +0000 (00:28 +0000)]
Whitespace fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60818
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 10 Dec 2008 00:24:36 +0000 (00:24 +0000)]
Update CalcLatency to work in terms of edge latencies, rather than
node latencies. Use CalcLatency instead of manual code in
CalculatePriorities to keep it consistent. Previously it
computed slightly different results.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60817
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 10 Dec 2008 00:15:44 +0000 (00:15 +0000)]
Fix a couple of Dwarf bugs.
- Emit DW_AT_byte_size for struct and union of size zero.
- Emit DW_AT_declaration for forward type declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60812
91177308-0d34-0410-b5e6-
96231b3b80d8
Scott Michel [Wed, 10 Dec 2008 00:15:19 +0000 (00:15 +0000)]
CellSPU:
- Fix bug 3185, with misc other cleanups.
- Needed to implement SPUInstrInfo::InsertBranch(). CAUTION: Not sure what
gets or needs to get passed to InsertBranch() to insert a conditional
branch. This will abort for now until a good test case shows up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60811
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 9 Dec 2008 23:19:12 +0000 (23:19 +0000)]
Implement fast-isel conversion of a branch instruction that's branching on an
overflow/carry from the "arithmetic with overflow" intrinsics. It searches the
machine basic block from bottom to top to find the SETO/SETC instruction that is
its conditional. If an instruction modifies EFLAGS before it reaches the
SETO/SETC instruction, then it defaults to the normal instruction emission.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60807
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 9 Dec 2008 22:54:47 +0000 (22:54 +0000)]
Rewrite the SDep class, and simplify some of the related code.
The Cost field is removed. It was only being used in a very limited way,
to indicate when the scheduler should attempt to protect a live register,
and it isn't really needed to do that. If we ever want the scheduler to
start inserting copies in non-prohibitive situations, we'll have to
rethink some things anyway.
A Latency field is added. Instead of giving each node a single
fixed latency, each edge can have its own latency. This will eventually
be used to model various micro-architecture properties more accurately.
The PointerIntPair class and an internal union are now used, which
reduce the overall size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60806
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2008 22:45:32 +0000 (22:45 +0000)]
loosen up an assertion that isn't valid when called from
invalidateCachedPointerInfo. Thanks to Bill for sending me
a testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60805
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 9 Dec 2008 22:45:08 +0000 (22:45 +0000)]
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60804
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 9 Dec 2008 22:08:41 +0000 (22:08 +0000)]
Add sub/mul overflow intrinsics. This currently doesn't have a
target-independent way of determining overflow on multiplication. It's very
tricky. Patch by Zoltan Varga!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60800
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2008 22:06:23 +0000 (22:06 +0000)]
Teach GVN to invalidate some memdep information when it does an RAUW
of a pointer. This allows is to catch more equivalencies. For example,
the type_lists_compatible_p function used to require two iterations of
the gvn pass (!) to delete its 18 redundant loads because the first pass
would CSE all the addressing computation cruft, which would unblock the
second memdep/gvn passes from recognizing them. This change allows
memdep/gvn to catch all 18 when run just once on the function (as is
typical :) instead of just 3.
On all of 403.gcc, this bumps up the # reundandancies found from:
63 gvn - Number of instructions PRE'd
153991 gvn - Number of instructions deleted
50069 gvn - Number of loads deleted
to:
63 gvn - Number of instructions PRE'd
154137 gvn - Number of instructions deleted
50185 gvn - Number of loads deleted
+120 loads deleted isn't bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60799
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 9 Dec 2008 21:33:20 +0000 (21:33 +0000)]
Fix PR3117: not all nodes being legalized. The
essential problem was that the DAG can contain
random unused nodes which were never analyzed.
When remapping a value of a node being processed,
such a node may become used and need to be analyzed;
however due to operands being transformed during
analysis the node may morph into a different one.
Users of the morphing node need to be updated, and
this wasn't happening. While there I added a bunch
of documentation and sanity checks, so I (or some
other poor soul) won't have to scratch their head
over this stuff so long trying to remember how it
was all supposed to work next time some obscure
problem pops up! The extra sanity checking exposed
a few places where invariants weren't being preserved,
so those are fixed too. Since some of the sanity
checking is expensive, I added a flag to turn it
on. It is also turned on when building with
ENABLE_EXPENSIVE_CHECKS=1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60797
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2008 21:19:42 +0000 (21:19 +0000)]
Teach BasicAA::getModRefInfo(CallSite, CallSite) some
tricks based on readnone/readonly functions.
Teach memdep to look past readonly calls when analyzing
deps for a readonly call. This allows elimination of a
few more calls from 403.gcc:
before:
63 gvn - Number of instructions PRE'd
153986 gvn - Number of instructions deleted
50069 gvn - Number of loads deleted
after:
63 gvn - Number of instructions PRE'd
153991 gvn - Number of instructions deleted
50069 gvn - Number of loads deleted
5 calls isn't much, but this adds plumbing for the next change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60794
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2008 19:47:40 +0000 (19:47 +0000)]
Fix a fixme: allow memdep to see past read-only calls when doing
load dependence queries. This allows GVN to eliminate a few more
instructions on 403.gcc:
152598 gvn - Number of instructions deleted
49240 gvn - Number of loads deleted
after:
153986 gvn - Number of instructions deleted
50069 gvn - Number of loads deleted
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60786
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2008 19:38:05 +0000 (19:38 +0000)]
rename getNonLocalDependency -> getNonLocalCallDependency, and remove
pointer stuff from it, simplifying the code a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60783
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2008 19:25:07 +0000 (19:25 +0000)]
Switch GVN::processNonLocalLoad to using the new
MemDep::getNonLocalPointerDependency method. There are
some open issues with this (missed optimizations) and
plenty of future work, but this does allow GVN to eliminate
*slightly* more loads (49246 vs 49033).
Switching over now allows simplification of the other code
path in memdep.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60780
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2008 19:21:47 +0000 (19:21 +0000)]
random cleanups, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60779
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 9 Dec 2008 18:43:00 +0000 (18:43 +0000)]
xfail this for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60777
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 9 Dec 2008 18:21:49 +0000 (18:21 +0000)]
Back out 60748 for now. It's breaking SPASS, 254.gap, and 464.h264ref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60776
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 9 Dec 2008 17:56:30 +0000 (17:56 +0000)]
Cosmetic changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60771
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 9 Dec 2008 17:04:06 +0000 (17:04 +0000)]
remove unused var
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60770
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 9 Dec 2008 16:37:48 +0000 (16:37 +0000)]
Whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60769
91177308-0d34-0410-b5e6-
96231b3b80d8