Evan Cheng [Thu, 13 Nov 2008 07:46:59 +0000 (07:46 +0000)]
Missed a break statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59231
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 13 Nov 2008 07:34:59 +0000 (07:34 +0000)]
Fix pre- and post-indexed load / store encoding bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59230
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 13 Nov 2008 07:11:27 +0000 (07:11 +0000)]
Refactor the code that does the type checking for intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59228
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 13 Nov 2008 05:01:07 +0000 (05:01 +0000)]
Add Binary flag to raw_fd_ostream constructor.
Document raw_fd_ostream's treatment of "-".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59219
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 13 Nov 2008 04:09:04 +0000 (04:09 +0000)]
Added testcase for r59214.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59218
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 13 Nov 2008 01:28:40 +0000 (01:28 +0000)]
Really remove all debug information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59208
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 13 Nov 2008 01:03:00 +0000 (01:03 +0000)]
Regenerated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59204
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 13 Nov 2008 01:02:51 +0000 (01:02 +0000)]
Update docs for ssp and sspreq function attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59203
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 13 Nov 2008 01:02:14 +0000 (01:02 +0000)]
Implement stack protectors as function attributes: "ssp" and "sspreq".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59202
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 12 Nov 2008 23:24:15 +0000 (23:24 +0000)]
Revert the part of r59145 that changed the comment about
virtual registers possibly having multiple kills while still
being defined and killed in the same block. If LiveIntervals
is manually re-run after two-address lowering, it currently
does add extra kills to two-address instructions, but this
is considered a bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59194
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 12 Nov 2008 22:55:05 +0000 (22:55 +0000)]
Move the code that inserts X87 FP_REG_KILL instructions from a
special-purpose hook to a new pass. Also, add check to see if any
x87 virtual registers are used, to avoid doing any work in the
common case that no x87 code is needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59190
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 21:37:59 +0000 (21:37 +0000)]
Remove the incorrect assertion. We don't have enough information before relocation to set U bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59170
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 12 Nov 2008 20:40:56 +0000 (20:40 +0000)]
CMake: when bulding shared libraries on non-WIN32 systems, link dl to
LLVMSystem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59159
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 12 Nov 2008 20:39:06 +0000 (20:39 +0000)]
Tell GenLibDeps.pl to inspect .so and .dylib shared files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59158
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 12 Nov 2008 18:38:44 +0000 (18:38 +0000)]
Fix unsigned char->ppcf128 conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59150
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 12 Nov 2008 17:15:19 +0000 (17:15 +0000)]
Do the LiveVariables update before printing the instruction in
the debug output, so that the updated liveness flags are
reflected in the debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59147
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 12 Nov 2008 17:09:23 +0000 (17:09 +0000)]
Remove some debugging code made redundant by the change to do
coalescing as a separate pass rather than inside of
LiveIntervalAnalysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59146
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 12 Nov 2008 17:02:24 +0000 (17:02 +0000)]
Update VarInfo's comments to reflect the current code. LiveVar
no longer records a unique defining instruction, and virtual
registers may have multiple kills while still being defined
and killed in the same block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59145
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 12 Nov 2008 16:53:40 +0000 (16:53 +0000)]
Correct a function name in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59143
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Wed, 12 Nov 2008 16:12:27 +0000 (16:12 +0000)]
Add test case for ptr annotation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59142
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Wed, 12 Nov 2008 12:41:18 +0000 (12:41 +0000)]
Check the return value of std::getenv.
When constructing std::strings from C strings, we should check the input
value to be not NULL so that the std::string constructor does not
segfault.
Fixes #3047.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59131
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 12 Nov 2008 10:10:25 +0000 (10:10 +0000)]
Correct these links.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59126
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 12 Nov 2008 08:37:57 +0000 (08:37 +0000)]
Simplify SplitVecRes_EXTRACT_SUBVECTOR. This means
that it no longer handles non-power-of-two vectors.
However it previously only handled them sometimes,
depending on obscure numerical relationships between
the index and vector type. For example, for a vector
of length 6, it would succeed if and only if the
index was an even multiple of 6. I consider this
more confusing than useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59122
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 12 Nov 2008 08:23:26 +0000 (08:23 +0000)]
Correct some thinkos in the expansion of ADD/SUB
when the target does not support ADDC/SUBC. This
fixes PR3044.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59120
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 08:22:43 +0000 (08:22 +0000)]
Change binary dump format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59119
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 08:21:12 +0000 (08:21 +0000)]
Address mode immediate offset has already been divided by 4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59117
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 08:14:21 +0000 (08:14 +0000)]
Fix a VFP binary arithmetic instruction encoding bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59116
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 07:34:37 +0000 (07:34 +0000)]
Fix address mode 3 immediate offset mode encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59109
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 07:18:38 +0000 (07:18 +0000)]
Consolidate formats; fix FCMPED etc. encodings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59107
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Wed, 12 Nov 2008 07:17:57 +0000 (07:17 +0000)]
Add ptr annotation intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59106
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 06:41:41 +0000 (06:41 +0000)]
Fix VFP conversion instruction encodings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59104
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 02:19:38 +0000 (02:19 +0000)]
Fix encoding of single-precision VFP registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59102
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 12 Nov 2008 02:00:35 +0000 (02:00 +0000)]
Fix the testb optimization so x86 also bootstraps.
Reenable test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59101
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Nov 2008 01:02:24 +0000 (01:02 +0000)]
VFP fld / fst immediate field is multiplied by 4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59100
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 12 Nov 2008 00:14:12 +0000 (00:14 +0000)]
CMake: Remove removed source file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59098
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Wed, 12 Nov 2008 00:05:17 +0000 (00:05 +0000)]
Add a bit of lazy evaluation to PopulateCompilationGraph().
Only the tools that are mentioned in the compilation graph definition
are now inserted by PopulateCompilationGraph(). This should cut down
plugin loading time a little.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59097
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Wed, 12 Nov 2008 00:04:46 +0000 (00:04 +0000)]
Some cosmetic changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59096
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Nov 2008 23:58:15 +0000 (23:58 +0000)]
Remove
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59093
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Nov 2008 23:57:33 +0000 (23:57 +0000)]
Undo previous check-in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59092
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Tue, 11 Nov 2008 23:19:51 +0000 (23:19 +0000)]
This shouldn't be necessary
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59090
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Nov 2008 22:46:12 +0000 (22:46 +0000)]
Fix FMDRR encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59088
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Nov 2008 22:19:31 +0000 (22:19 +0000)]
Handle floating point constpool_entry's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59087
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 11 Nov 2008 22:11:27 +0000 (22:11 +0000)]
Don't walk into predecessors in which the vreg is not live when doing shrinkwrapping.
This lets several failing tests get farther along, but doesn't completely fix any of them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59086
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Nov 2008 21:48:44 +0000 (21:48 +0000)]
Encode VFP load / store instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59084
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 11 Nov 2008 21:34:44 +0000 (21:34 +0000)]
In ScheduleDAGRRList::CopyAndMoveSuccessors, create the SUnit for the load
before creating the SUnit for the operation that it was unfolded from. This
allows each SUnit to have all of its predecessor SUnits available at the time
it is created. I don't know yet if this will be absolutely required, but it
is a little tidier to do it this way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59083
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 11 Nov 2008 21:31:56 +0000 (21:31 +0000)]
Avoid relying on the SelectionDAG for initializing the MachineFunction and
TargetLoweringInfo variables for the scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59082
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 11 Nov 2008 20:04:40 +0000 (20:04 +0000)]
CMake: Updated library dependency info used for MSVC++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59079
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 11 Nov 2008 19:51:36 +0000 (19:51 +0000)]
CMake: Updated list of source files for lib/Transforms/Utils.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59077
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Nov 2008 19:40:26 +0000 (19:40 +0000)]
Encode VFP conversion instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59074
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Nov 2008 19:36:31 +0000 (19:36 +0000)]
last validation errors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59072
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Nov 2008 19:35:38 +0000 (19:35 +0000)]
Remove incomplete lto-bugpoint tool. If there is an interest then we can resurrect this tool later on and finish implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59071
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Nov 2008 19:35:15 +0000 (19:35 +0000)]
fix some validation errors <it> -> <i>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59070
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Nov 2008 19:34:28 +0000 (19:34 +0000)]
fix some validation errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59069
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Nov 2008 19:33:39 +0000 (19:33 +0000)]
Add utility pass to remove dbg info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59068
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Nov 2008 19:31:26 +0000 (19:31 +0000)]
remove an extraneous tag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59067
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Nov 2008 19:30:41 +0000 (19:30 +0000)]
Make this document *substantially* better and cover a lot more territory.
Document written by Mason Woo (http://www.woo.com)!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59066
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Nov 2008 19:17:41 +0000 (19:17 +0000)]
Silence unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59064
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Nov 2008 19:16:41 +0000 (19:16 +0000)]
Use actual function name in comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59063
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 11 Nov 2008 17:50:47 +0000 (17:50 +0000)]
Change the scheduler accessor methods to accept an explicit TargetMachine
argument instead of taking the SelectionDAG's TargetMachine. This is
needed for some upcoming scheduler changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59055
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Nov 2008 17:35:52 +0000 (17:35 +0000)]
Add a README entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59052
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 11 Nov 2008 17:10:58 +0000 (17:10 +0000)]
CMake: forces rebuild of llvm-config's library dependency info when a
library is added or changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59051
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 11 Nov 2008 17:10:13 +0000 (17:10 +0000)]
CMake: corrected split of Alpha and Sparc AsmPrinters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59050
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 11 Nov 2008 16:56:52 +0000 (16:56 +0000)]
CMake: Removed unnecessary library path setting that was breaking the
build on OS X.
Fix by Jjgod Jiang!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59048
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 11 Nov 2008 16:42:57 +0000 (16:42 +0000)]
Separate sparc asmprinter. This should unbreak the native build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59047
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 11 Nov 2008 16:42:17 +0000 (16:42 +0000)]
Separate alpha asmprinter. This should unbreak native build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59046
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 11 Nov 2008 15:52:29 +0000 (15:52 +0000)]
The 32-bit displacement field in an x86 address is signed. Arrange for it
to be sign-extended when it is promoted to 64 bits for intermediate
offset calculations. The offset calculations are done as uint64_t so that
overflow conditions are well defined.
This fixes a problem which is currently hidden by the x86 AsmPrinter but
which was exposed by r58917 (which is temporarily reverted). See PR3027
for details.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59044
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 11 Nov 2008 15:36:42 +0000 (15:36 +0000)]
Add svn:ignore properties for srcdir = objdir builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59043
91177308-0d34-0410-b5e6-
96231b3b80d8
Cedric Venet [Tue, 11 Nov 2008 09:55:48 +0000 (09:55 +0000)]
Update CMakeLists.txt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59039
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 11 Nov 2008 08:25:46 +0000 (08:25 +0000)]
Fix for PR3040:
The CC was changed, but wasn't checked to see if it was legal if the DAG
combiner was being run after legalization. Threw in a couple of checks just to
make sure that it's okay. As far as the PR is concerned, no back-end target
actually exhibited this problem, so there isn't an associated testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59035
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Tue, 11 Nov 2008 06:06:07 +0000 (06:06 +0000)]
fix another libgcc blocker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59026
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Tue, 11 Nov 2008 05:40:06 +0000 (05:40 +0000)]
Cleaned up and fix bugs in convert_rndsat node
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59025
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 11 Nov 2008 04:44:42 +0000 (04:44 +0000)]
Un-XFAIL tests now that they're fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59023
91177308-0d34-0410-b5e6-
96231b3b80d8
Scott Michel [Tue, 11 Nov 2008 03:06:06 +0000 (03:06 +0000)]
Unbreak the buildbot and back out (inadvertant) casting edits in CellSPU
backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59018
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Nov 2008 02:11:05 +0000 (02:11 +0000)]
Encode VFP arithmetic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59016
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Nov 2008 00:54:10 +0000 (00:54 +0000)]
Cleanup debug info. assocated with deleted instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59012
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Nov 2008 00:53:02 +0000 (00:53 +0000)]
Add utility routines to remove dead debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59011
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 11 Nov 2008 00:36:10 +0000 (00:36 +0000)]
r59009 broke these tests. XFAIL for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59010
91177308-0d34-0410-b5e6-
96231b3b80d8
Scott Michel [Mon, 10 Nov 2008 23:43:06 +0000 (23:43 +0000)]
CellSPU: Fix bug 3606, as well as some ongoing work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59009
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 10 Nov 2008 23:38:59 +0000 (23:38 +0000)]
Small simplification. Use the iterator already present as the insertion point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59008
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 10 Nov 2008 23:26:16 +0000 (23:26 +0000)]
Comments and indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59007
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 10 Nov 2008 23:14:47 +0000 (23:14 +0000)]
Correct PIC function stub codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59006
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 10 Nov 2008 22:09:59 +0000 (22:09 +0000)]
CMake: Fixed cross-compiling.
`clean' makefile target removes add-hoc directory created for building
the native tablegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59005
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 10 Nov 2008 22:09:58 +0000 (22:09 +0000)]
Fix indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59004
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 10 Nov 2008 21:22:06 +0000 (21:22 +0000)]
Temporarily revert r58979 and related patch. It's causing a failure in X86 bootstrap:
Comparing stages 2 and 3
warning: ./cc1-checksum.o differs
warning: ./cc1obj-checksum.o differs
warning: ./cc1objplus-checksum.o differs
warning: ./cc1plus-checksum.o differs
Bootstrap comparison failure!
./alias.o differs
./alloc-pool.o differs
./attribs.o differs
./bb-reorder.o differs
./bitmap.o differs
./build/errors.o differs
./build/genattrtab.o differs
./build/genautomata.o differs
./build/genemit.o differs
./build/genextract.o differs
...
-bw
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59003
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 10 Nov 2008 21:13:10 +0000 (21:13 +0000)]
- Make sure that we don't over-increment the iterator when going through the
basic blocks.
- Minor code clean-up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59002
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Mon, 10 Nov 2008 20:54:11 +0000 (20:54 +0000)]
Added CONVERT_RNDSAT (conversion with rounding and saturation) SDNode to
support targets that support these conversions. Users should avoid using
this node as the current targets don't generating code for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59001
91177308-0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Mon, 10 Nov 2008 20:03:21 +0000 (20:03 +0000)]
Update VC++ project file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58997
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 10 Nov 2008 19:48:34 +0000 (19:48 +0000)]
If the sign of exit condition and split condition does not match
then do not split loop index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58995
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 10 Nov 2008 17:36:26 +0000 (17:36 +0000)]
Fix PR2667: add soft float support for sint_to_fp/uint_to_fp
where the argument is an apint, or smaller than the minimum
size for which there is a libcall (i32).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58994
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 10 Nov 2008 17:31:56 +0000 (17:31 +0000)]
Tweak some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58993
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 10 Nov 2008 17:29:56 +0000 (17:29 +0000)]
Small cleanups. No functionality change intended!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58992
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 10 Nov 2008 17:28:30 +0000 (17:28 +0000)]
When promoting the result of fp_to_uint/fp_to_sint,
inform the optimizers that the result must be zero/
sign extended from the smaller type. For example,
if a fp to unsigned i16 is promoted to fp to i32,
then we are allowed to assume that the extra 16 bits
are zero (because the result of fp to i16 is undefined
if the result does not fit in an i16). This is
quite aggressive, but should help the optimizers
produce better code. This requires correcting a
test which thought that fp_to_uint is some kind
of truncation, which it is not: in the testcase
(which does fp to i1), either the fp value converts
to 0 or 1 or the result is undefined, which is
quite different to truncation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58991
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 10 Nov 2008 10:05:09 +0000 (10:05 +0000)]
Work around PR1000.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58984
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 10 Nov 2008 07:33:13 +0000 (07:33 +0000)]
Proper way of doing llvm canadian-cross compilation.
Patch by Jim Grosbach!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58981
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 10 Nov 2008 07:30:32 +0000 (07:30 +0000)]
Reenable test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58980
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 10 Nov 2008 07:16:42 +0000 (07:16 +0000)]
Really fix testb optimization on big-endian.
Fixes ppc32 bootstrap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58979
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 10 Nov 2008 06:59:06 +0000 (06:59 +0000)]
Third time's a charm.
The previous patches didn't match correctly. Also, we need to make sure that
the conditional is the same before doing the transformation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58978
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Nov 2008 05:40:34 +0000 (05:40 +0000)]
final edits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58966
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Mon, 10 Nov 2008 04:46:22 +0000 (04:46 +0000)]
Added support for the following definition of shufflevector
<result> = shufflevector <n x <ty>> <v1>, <n x <ty>> <v2>, <m x i32> <mask>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58964
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Nov 2008 04:35:24 +0000 (04:35 +0000)]
eliminate a couple more uses of utohexstr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58963
91177308-0d34-0410-b5e6-
96231b3b80d8