Eli Friedman [Tue, 1 Nov 2011 04:49:29 +0000 (04:49 +0000)]
Make sure we use the right insertion point when instcombine replaces a PHI with another instruction. (Specifically, don't insert an arbitrary instruction before a PHI.) Fixes PR11275.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143437
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 04:40:56 +0000 (04:40 +0000)]
A couple misc fixes so that bugpoint doesn't explode reducing code containing landingpads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143435
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 1 Nov 2011 04:08:23 +0000 (04:08 +0000)]
Add LuaAV to external projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143431
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 03:21:48 +0000 (03:21 +0000)]
Move x86-specific tests into X86 folder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143424
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 03:21:17 +0000 (03:21 +0000)]
Remove empty directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143422
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 03:12:47 +0000 (03:12 +0000)]
Move another test requiring x86 into X86 directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143421
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 03:11:41 +0000 (03:11 +0000)]
Move test requiring x86 backend into X86 directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143420
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 1 Nov 2011 01:24:45 +0000 (01:24 +0000)]
ARM VLD/VST assembly parsing for symbolic address operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143413
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 1 Nov 2011 00:02:31 +0000 (00:02 +0000)]
Update split candidate correctly when interference cache is full.
No test case, spotted by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143407
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 31 Oct 2011 23:59:22 +0000 (23:59 +0000)]
Add support for new atomics to cpp backend. Misc other fixes while I'm here. PR11268.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143406
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 31 Oct 2011 23:58:51 +0000 (23:58 +0000)]
Add utility to append a function to the list of global constructors.
Patch by Kostya Serebryany.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143405
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Mon, 31 Oct 2011 23:56:52 +0000 (23:56 +0000)]
Change the actual tests to match the input directory rename (duh)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143404
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Mon, 31 Oct 2011 23:46:50 +0000 (23:46 +0000)]
Reapply r141657.
Also revert the change to CREATE_SUBDIRS as this is what caused the CSS to break on the website and generate the much longer URLs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143401
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Mon, 31 Oct 2011 23:46:38 +0000 (23:46 +0000)]
Rename "TestObjectFiles" to "Inputs" (like the pattern for Clang tests)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143400
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 31 Oct 2011 21:50:31 +0000 (21:50 +0000)]
ARM VST1 w/ writeback assembly parsing and encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143369
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 31 Oct 2011 21:23:15 +0000 (21:23 +0000)]
Update 'Getting Started' to suggest using GCC 4.2 or higher (or Clang). There is no reason to support older versions of GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143366
91177308-0d34-0410-b5e6-
96231b3b80d8
Galina Kistanova [Mon, 31 Oct 2011 21:13:06 +0000 (21:13 +0000)]
Added instruction how to add a builder to docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143365
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 31 Oct 2011 20:08:25 +0000 (20:08 +0000)]
Cleanup. Document. Make sure that this build_vector optimization only runs before the op legalizer and that the used type is legal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143358
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 31 Oct 2011 19:11:23 +0000 (19:11 +0000)]
ARM writeback vs. stride operands for VST/VLD.
The _fixed variants have a writeback operand, but not a stride operand.
Split the conditional flag to distinguish the cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143356
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 31 Oct 2011 17:23:09 +0000 (17:23 +0000)]
Move test to the X86 directory, note the PR number and only run MC once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143352
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 31 Oct 2011 17:17:32 +0000 (17:17 +0000)]
More not-crashing NEON disassembly updates for the vld refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143351
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Mon, 31 Oct 2011 13:04:26 +0000 (13:04 +0000)]
docs/*.html: Fix markups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143349
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Mon, 31 Oct 2011 11:21:59 +0000 (11:21 +0000)]
docs/*.html: Appease W3C Checker to add "charset=utf-8".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143348
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Mon, 31 Oct 2011 07:16:37 +0000 (07:16 +0000)]
Fix operand type for int_x86_ssse3_phadd_sw_128 intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143336
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Mon, 31 Oct 2011 02:15:47 +0000 (02:15 +0000)]
Test case for X86 FS/GS Base intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143332
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Mon, 31 Oct 2011 02:15:10 +0000 (02:15 +0000)]
Begin adding AVX2 instructions. No selection support yet other than intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143331
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 31 Oct 2011 01:32:21 +0000 (01:32 +0000)]
Close <div> that was indenting the rest of the page.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143328
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 31 Oct 2011 01:06:02 +0000 (01:06 +0000)]
Switch new .file directive emission off by default, change llc's flag for it to
-enable-dwarf-directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143326
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sun, 30 Oct 2011 19:57:21 +0000 (19:57 +0000)]
Add intrinsics and feature flag for read/write FS/GS base instructions. Also add AVX2 feature flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143319
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sun, 30 Oct 2011 19:56:36 +0000 (19:56 +0000)]
Reapply commit 143214 with a fix: m_ICmp doesn't match conditions
with the given predicate, it matches any condition and returns the
predicate - d'oh! Original commit message:
The expression icmp eq (select (icmp eq x, 0), 1, x), 0 folds to false.
Spotted by my super-optimizer in 186.crafty and 450.soplex. We really
need a proper infrastructure for handling generalizations of this kind
of thing (which occur a lot), however this case is so simple that I decided
to go ahead and implement it directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143318
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sun, 30 Oct 2011 18:33:35 +0000 (18:33 +0000)]
Mark X86 pcmpeq b/w/d intrinsics as being Commutative. pcmpeqq is already marked as Commutative.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143317
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Sun, 30 Oct 2011 17:46:34 +0000 (17:46 +0000)]
Teach ModuleLinker::getLinkageResult about materialisable functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143316
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 30 Oct 2011 17:31:21 +0000 (17:31 +0000)]
X86: Emit logical shift by constant splat of <16 x i8> as a <8 x i16> shift and zero out the bits where zeros should've been shifted in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143315
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sun, 30 Oct 2011 17:22:45 +0000 (17:22 +0000)]
Fix return type for X86 mpsadbw instrinsic. The instruction takes in a vector of 8-bit integers, but produces a vector of 16-bit integers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143313
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sun, 30 Oct 2011 13:24:22 +0000 (13:24 +0000)]
Fix pr11266.
On x86: (shl V, 1) -> add V,V
Hardware support for vector-shift is sparse and in many cases we scalarize the
result. Additionally, on sandybridge padd is faster than shl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143311
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 30 Oct 2011 08:39:55 +0000 (08:39 +0000)]
Silence compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143308
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sun, 30 Oct 2011 08:07:50 +0000 (08:07 +0000)]
Stabilize the test by specifying an exact cpu target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143307
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Sun, 30 Oct 2011 07:49:04 +0000 (07:49 +0000)]
Update on PPC32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143306
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 29 Oct 2011 23:49:52 +0000 (23:49 +0000)]
Do a relative path ln command instead of an absolute path one. Some people strangely enough have different directory layouts...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143302
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Sat, 29 Oct 2011 23:42:14 +0000 (23:42 +0000)]
CREDITS.TXT: Add a line. (test commit)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143300
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sat, 29 Oct 2011 21:23:04 +0000 (21:23 +0000)]
Add a new DAGCombine optimization for BUILD_VECTOR.
If all of the inputs are zero/any_extended, create a new simple BV
which can be further optimized by other BV optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143297
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 29 Oct 2011 19:43:44 +0000 (19:43 +0000)]
Force SSE for this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143291
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 29 Oct 2011 19:43:38 +0000 (19:43 +0000)]
PPC: Disable moves for all CR subregisters.
Should fix assertion failures on ppc buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143290
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 29 Oct 2011 19:43:31 +0000 (19:43 +0000)]
SimplifyLibCalls: Use IRBuilder.CreateGlobalString when creating a string for printf->puts, which correctly sets the unnamed_addr bit on the resulting GlobalVariable.
Fixes PR11264.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143289
91177308-0d34-0410-b5e6-
96231b3b80d8
llvm [Sat, 29 Oct 2011 14:16:39 +0000 (14:16 +0000)]
Test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143277
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 29 Oct 2011 01:11:15 +0000 (01:11 +0000)]
Revise ThreadSanitizer mention so that it lists the correct frontends.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143268
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 29 Oct 2011 01:10:01 +0000 (01:10 +0000)]
Add Cling to the External Projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143267
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Sat, 29 Oct 2011 00:56:07 +0000 (00:56 +0000)]
Revert r143214; it's breaking a bunch of stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143265
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 29 Oct 2011 00:41:52 +0000 (00:41 +0000)]
Revert r143206, as there are still some failing tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143262
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 28 Oct 2011 23:11:03 +0000 (23:11 +0000)]
test/CodeGen/PowerPC/2008-10-17-AsmMatchingOperands.ll: [PR11218] Mark "REQUIRES: asserts" for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143247
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 22:50:54 +0000 (22:50 +0000)]
ARM mode 'mov' to 'mvn' assembler alias.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143237
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 22:36:30 +0000 (22:36 +0000)]
Add Thumb2 alias for "mov Rd, #imm" to "mvn Rd, #~imm".
When '~imm' is encodable as a t2_so_imm but plain 'imm' is not. For example,
mov r2, #-3
becomes
mvn r2, #2
rdar://
10349224
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143235
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 22:32:53 +0000 (22:32 +0000)]
Allow InstAlias's to use immediate matcher patterns that xform the value.
For example,
On ARM, "mov r3, #-3" is an alias for "mvn r3, #2", so we want to use a
matcher pattern that handles the bitwise negation when mapping to t2MVNi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143233
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 28 Oct 2011 21:45:09 +0000 (21:45 +0000)]
Fix illegal disassembly testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143231
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 20:52:20 +0000 (20:52 +0000)]
Clarify example snippets a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143224
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 28 Oct 2011 20:43:24 +0000 (20:43 +0000)]
Specify that the high bit of the alignment field is fixed to 0 on these instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143220
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Fri, 28 Oct 2011 19:55:48 +0000 (19:55 +0000)]
Make changes necessary in LowerFormalArguments to support Mips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143218
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Fri, 28 Oct 2011 19:49:00 +0000 (19:49 +0000)]
Make changes necessary in LowerCall to support Mips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143217
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 28 Oct 2011 19:01:20 +0000 (19:01 +0000)]
The expression icmp eq (select (icmp eq x, 0), 1, x), 0 folds to false.
Spotted by my super-optimizer in 186.crafty and 450.soplex. We really
need a proper infrastructure for handling generalizations of this kind
of thing (which occur a lot), however this case is so simple that I decided
to go ahead and implement it directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143214
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Fri, 28 Oct 2011 18:47:24 +0000 (18:47 +0000)]
Add variable IsO32 to MipsTargetLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143213
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 28 Oct 2011 18:30:05 +0000 (18:30 +0000)]
A shift of a power of two is a power of two or zero.
For completeness - not spotted in the wild.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143211
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 28 Oct 2011 18:17:44 +0000 (18:17 +0000)]
Fold icmp ugt (udiv X, Y), X to false. Spotted by my super-optimizer
in 186.crafty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143209
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 28 Oct 2011 18:02:13 +0000 (18:02 +0000)]
Reapply r143202, with a manual decoding hook for SWP. This change inadvertantly exposed a decoding ambiguity between SWP and CPS that the auto-generated decoder can't handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143208
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 28 Oct 2011 17:55:38 +0000 (17:55 +0000)]
Reapply r143177 and r143179 (reverting r143188), with scheduler
fixes: Use a separate register, instead of SP, as the
calling-convention resource, to avoid spurious conflicts with
actual uses of SP. Also, fix unscheduling of calling sequences,
which can be triggered by pseudo-two-address dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143206
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 28 Oct 2011 17:38:30 +0000 (17:38 +0000)]
Revert r143202.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143203
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 28 Oct 2011 17:29:39 +0000 (17:29 +0000)]
Specify fixed bits on CPS instructions to enable roundtripping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143202
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 16:57:07 +0000 (16:57 +0000)]
Thumb2 ADD/SUB instructions encoding selection outside IT block.
Outside an IT block, "add r3, #2" should select a 32-bit wide encoding
rather than generating an error indicating the 16-bit encoding is only
legal in an IT block (outside, the 'S' suffic is required for the 16-bit
encoding).
rdar://
10348481
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143201
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 16:43:40 +0000 (16:43 +0000)]
Allow register classes to match a containing class in InstAliases.
If the register class in the source alias is a subclass of the register class
of the actual instruction, the alias can still match OK since the constraints
are strictly a subset of what the instruction can actually handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143200
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 28 Oct 2011 14:12:30 +0000 (14:12 +0000)]
test/MC/AsmParser/2011-09-06-NoNewline.s: Add explicit -mtriple=i386. It uses X86 instruction.
FIXME: Would it be reproduced without target-specific operands?
FIXME: Why run llvm-mc as the same input by 3 times?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143195
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 28 Oct 2011 14:12:22 +0000 (14:12 +0000)]
Dwarf: [PR11022] Fix emitting DW_AT_const_value(>i64), to be host-endian-neutral.
Don't assume APInt::getRawData() would hold target-aware endianness nor host-compliant endianness. rawdata[0] holds most lower i64, even on big endian host.
FIXME: Add a testcase for big endian target.
FIXME: Ditto on CompileUnit::addConstantFPValue() ?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143194
91177308-0d34-0410-b5e6-
96231b3b80d8
Stepan Dyatkovskiy [Fri, 28 Oct 2011 13:07:32 +0000 (13:07 +0000)]
uint64 formatted output: replaced %llx with PRIx64 macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143191
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 28 Oct 2011 11:14:31 +0000 (11:14 +0000)]
Use BranchProbability compare operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143190
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 28 Oct 2011 10:50:52 +0000 (10:50 +0000)]
test/CodeGen/X86/2010-08-10-DbgConstant.ll: Add explicit -mtriple=i686-linux. It must be for elf!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143189
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 28 Oct 2011 09:55:57 +0000 (09:55 +0000)]
Speculatively disable Dan's commits 143177 and 143179 to see if
it fixes the dragonegg self-host (it looks like gcc is miscompiled).
Original commit messages:
Eliminate LegalizeOps' LegalizedNodes map and have it just call RAUW
on every node as it legalizes them. This makes it easier to use
hasOneUse() heuristics, since unneeded nodes can be removed from the
DAG earlier.
Make LegalizeOps visit the DAG in an operands-last order. It previously
used operands-first, because LegalizeTypes has to go operands-first, and
LegalizeTypes used to be part of LegalizeOps, but they're now split.
The operands-last order is more natural for several legalization tasks.
For example, it allows lowering code for nodes with floating-point or
vector constants to see those constants directly instead of seeing the
lowered form (often constant-pool loads). This makes some things
somewhat more complicated today, though it ought to allow things to be
simpler in the future. It also fixes some bugs exposed by Legalizing
using RAUW aggressively.
Remove the part of LegalizeOps that attempted to patch up invalid chain
operands on libcalls generated by LegalizeTypes, since it doesn't work
with the new LegalizeOps traversal order. Instead, define what
LegalizeTypes is doing to be correct, and transfer the responsibility
of keeping calls from having overlapping calling sequences into the
scheduler.
Teach the scheduler to model callseq_begin/end pairs as having a
physical register definition/use to prevent calls from having
overlapping calling sequences. This is also somewhat complicated, though
there are ways it might be simplified in the future.
This addresses rdar://
9816668, rdar://
10043614, rdar://
8434668, and others.
Please direct high-level questions about this patch to management.
Delete #if 0 code accidentally left in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143188
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 28 Oct 2011 05:29:47 +0000 (05:29 +0000)]
Always use the string pool, even when it makes the .o larger. This may help
tools that read the debug info in the .o files by making the DIE sizes more
consistent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143186
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Fri, 28 Oct 2011 03:45:11 +0000 (03:45 +0000)]
LFTR should avoid a type mismatch with null pointer IVs.
Fixes rdar://
10359193 Indvar LinearFunctionTestReplace assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143183
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 28 Oct 2011 01:41:21 +0000 (01:41 +0000)]
Delete #if 0 code accidentally left in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143179
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 28 Oct 2011 01:29:32 +0000 (01:29 +0000)]
Eliminate LegalizeOps' LegalizedNodes map and have it just call RAUW
on every node as it legalizes them. This makes it easier to use
hasOneUse() heuristics, since unneeded nodes can be removed from the
DAG earlier.
Make LegalizeOps visit the DAG in an operands-last order. It previously
used operands-first, because LegalizeTypes has to go operands-first, and
LegalizeTypes used to be part of LegalizeOps, but they're now split.
The operands-last order is more natural for several legalization tasks.
For example, it allows lowering code for nodes with floating-point or
vector constants to see those constants directly instead of seeing the
lowered form (often constant-pool loads). This makes some things
somewhat more complicated today, though it ought to allow things to be
simpler in the future. It also fixes some bugs exposed by Legalizing
using RAUW aggressively.
Remove the part of LegalizeOps that attempted to patch up invalid chain
operands on libcalls generated by LegalizeTypes, since it doesn't work
with the new LegalizeOps traversal order. Instead, define what
LegalizeTypes is doing to be correct, and transfer the responsibility
of keeping calls from having overlapping calling sequences into the
scheduler.
Teach the scheduler to model callseq_begin/end pairs as having a
physical register definition/use to prevent calls from having
overlapping calling sequences. This is also somewhat complicated, though
there are ways it might be simplified in the future.
This addresses rdar://
9816668, rdar://
10043614, rdar://
8434668, and others.
Please direct high-level questions about this patch to management.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143177
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Fri, 28 Oct 2011 01:02:16 +0000 (01:02 +0000)]
Have llvm-config --cppflags print correct flags when in CMake build directory
Previously, if invoked from a CMake build directory, 'llvm-config
--cppflags' and friends would only print a -I flag for the build
directory's header search path, because it would assume that it was
already installed, not recognising its parent directory as being the
build directory. Teach llvm-config about CMake build directories
so that it prints a -I for both the source and build directory's
search paths.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143171
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 00:06:50 +0000 (00:06 +0000)]
ARM Allow 'q' registers in VLD/VST vector lists.
Just treat it as if the constituent D registers where specified.
rdar://
10348896
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143167
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 27 Oct 2011 22:56:32 +0000 (22:56 +0000)]
Remove the Alpha backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143164
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 27 Oct 2011 22:54:14 +0000 (22:54 +0000)]
Add testcase for r143162.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143163
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 27 Oct 2011 22:53:10 +0000 (22:53 +0000)]
Add some NEON stores to the VLD decoding hook that were accidentally omitted previously.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143162
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 27 Oct 2011 22:39:16 +0000 (22:39 +0000)]
Also set addrmode6 alignment when align==size.
Previously, we were only setting the alignment bits on over-aligned
loads and stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143160
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 27 Oct 2011 22:32:13 +0000 (22:32 +0000)]
The default alias analysis is -noaa; update the docs to reflect that. Patch by Michael Ilseman.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143159
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 27 Oct 2011 22:25:42 +0000 (22:25 +0000)]
ARM isel for vld1, opcode selection for register stride post-index pseudos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143158
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 27 Oct 2011 21:59:17 +0000 (21:59 +0000)]
Delete dead code. Nothing ever instantiates this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143153
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 27 Oct 2011 21:55:13 +0000 (21:55 +0000)]
Revert r143149, stubbing out symbolic disassembly support. The symbolic disassembly support is too MC-engrained to be useful in llvm-objdump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143152
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 27 Oct 2011 21:53:50 +0000 (21:53 +0000)]
If we're searching for a symbol reference to pretty-print a scattered relocation address, and we don't find a symbol table entry, try section begin addresses as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143151
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 27 Oct 2011 21:46:31 +0000 (21:46 +0000)]
Stub out support for symbol disassembly in llvm-objdump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143149
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 Oct 2011 21:25:09 +0000 (21:25 +0000)]
projects/sample: Switch over to imported Makefile setup.
- This will require you to manually reconfigure the projects/sample project (by running projects/config/sample/config.status --recheck) if you haven't updated/built since the 1st part of this commit went in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143148
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 27 Oct 2011 21:21:05 +0000 (21:21 +0000)]
Avoid partial CPSR dependency from loop backedges. rdar://
10357570
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143145
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 Oct 2011 20:59:26 +0000 (20:59 +0000)]
tests: Rip out a bunch of now unused test code relating to use of llvm-gcc in LLVM tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143143
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 Oct 2011 20:59:21 +0000 (20:59 +0000)]
tests: Remove llvm2cpp, I'm pretty sure no one uses this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143142
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 Oct 2011 20:59:19 +0000 (20:59 +0000)]
lit: Drop some unneeded code from example tests.
- Also, cleanup site.exp files in example tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143141
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 27 Oct 2011 20:46:09 +0000 (20:46 +0000)]
Fix pretty printing of i386 local sect diff relocations, TLV relocations, and x86_64 TLV relocations in MachO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143140
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Thu, 27 Oct 2011 19:19:14 +0000 (19:19 +0000)]
Add a pinned metadata name for fpaccuracy, and document it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143135
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Thu, 27 Oct 2011 19:19:07 +0000 (19:19 +0000)]
Document tbaa metadata in LangRef (documentation largely based on
comments at top of TypeBasedAliasAnalysis.cpp).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143134
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 27 Oct 2011 19:16:21 +0000 (19:16 +0000)]
Reapply commit 143028 with a fix: the problem was casting a ConstantExpr Mul
using BinaryOperator (which only works for instructions) when it should have
been a cast to OverflowingBinaryOperator (which also works for constants).
While there, correct a few other dubious looking uses of BinaryOperator.
Thanks to Chad Rosier for the testcase. Original commit message:
My super-optimizer noticed that we weren't folding this expression to
true: (x *nsw x) sgt 0, where x = (y | 1). This occurs in 464.h264ref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143125
91177308-0d34-0410-b5e6-
96231b3b80d8
Stepan Dyatkovskiy [Thu, 27 Oct 2011 18:40:45 +0000 (18:40 +0000)]
Fixed llvm-objdump uint64_t formatted output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143120
91177308-0d34-0410-b5e6-
96231b3b80d8