OSDN Git Service
Arnold Schwaighofer [Thu, 9 May 2013 00:32:18 +0000 (00:32 +0000)]
LoopVectorizer: Don't assert on the absence of induction variables
A computable loop exit count does not imply the presence of an induction
variable. Scalar evolution can return a value for an infinite loop.
Fixes PR15926.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181495
91177308-0d34-0410-b5e6-
96231b3b80d8
Dmitri Gribenko [Wed, 8 May 2013 22:28:48 +0000 (22:28 +0000)]
Use correct parameter names in comments [-Wdocumentation]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181478
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 21:55:31 +0000 (21:55 +0000)]
Revert 181475 as the DebugIR tests are breaking (automake) buildbots that re-use build dirs
- the temporaries "-debug.ll" files generated by DebugIR pass are considered tests, even though they are not
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181476
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 8 May 2013 21:23:22 +0000 (21:23 +0000)]
Make sure debug info contains linkage names (DW_AT_MIPS_linkage_name)
for constructors and destructors since the original declaration given
by the AT_specification both won't and can't.
Patch by Yacine Belkadi, I've cleaned up the testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181471
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 21:03:00 +0000 (21:03 +0000)]
DebugIR tests -- lit tests for the line number transform
- simple one-function case
- function-calling case
- external function calling case
- exception throwing case
- vector case
Note: these tests are somewhat coupled to the current format of debug metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181469
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 20:44:14 +0000 (20:44 +0000)]
Add DebugIR pass -- emits IR file and replace source lines with IR lines in MD
- requires existing debug information to be present
- fixes up file name and line number information in metadata
- emits a "<orig_filename>-debug.ll" succinct IR file (without !dbg metadata
or debug intrinsics) that can be read by a debugger
- initialize pass in opt tool to enable the "-debug-ir" flag
- lit tests to follow
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181467
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 20:38:31 +0000 (20:38 +0000)]
Pull up AssemblyWriter interface into header to allow subclassing
- made all functions virtual so that subclasses can specialize them
- add printInstructionLine so that subclasses can choose whether or not to
print the newline character (without having to implement printBasicBlock()
- added a second constructor to AssemblyWriter that does not require a
SlotTracker, as required in order to keep the SlotTracker helper class outside
AsmWriter.h and buried in the implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181466
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 20:29:10 +0000 (20:29 +0000)]
Add line tracking support to FormattedStream
- previously formatted_raw_ostream tracked columns, now it tracks lines too
- used by (upcoming) DebugIR pass to know the line number to connect to each IR
instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181463
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 8 May 2013 19:38:04 +0000 (19:38 +0000)]
[mips] Add instruction selection pattern for (seteq $LHS, 0).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181459
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Wed, 8 May 2013 17:51:44 +0000 (17:51 +0000)]
[PowerPC] Add ELF relocation tests
This patch extends test/MC/PowerPC/ppc64-fixups.s to not only check for
the correct fixup type in the --show-encoding output, but also runs the
generated object file through llvm-readobj -r and verifies that the
correct ELF relocation records were generated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181453
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Wed, 8 May 2013 17:51:39 +0000 (17:51 +0000)]
Remove unused isLegalAddressImmediate() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181452
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Wed, 8 May 2013 17:50:57 +0000 (17:50 +0000)]
[PowerPC] Add some missing PPC64 relocs
All R_PPC_... relocs should also be present (using the same number)
under the corresponding R_PPC64_... name. The latter were missing
for a couple of cases, which this patch adds.
This is not a big problem when emitting the reloc, because we can
just use the R_PPC_... define instead. But it is a problem when
*dumping* relocations e.g. using llvm-readobj, because this will
expect only R_PPC64_... values when inspecting a ppc64 ELF file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181451
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Wed, 8 May 2013 17:50:07 +0000 (17:50 +0000)]
[PowerPC] Fix regression in generating @ha/@l relocs
The patch I committed as revision 167864 introduced a regression that
causes LLVM to no longer generate appropriate relocs for @ha/@l symbol
references (but fail an assertion instead).
This is fixed here by re-enabling support for the VK_PPC_GAS_HA16/
VK_PPC_GAS_LO16 variant kinds (and their Darwin variants) in
PPCELFObjectWriter.cpp.
Tested by running projects/test-suite in -m32 mode with the integrated
assembler forced on. A standalone test case will be committed shortly
as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181450
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Schmidt [Wed, 8 May 2013 17:22:33 +0000 (17:22 +0000)]
Fix handling of anonymous aggregate parameters for powerpc*-apple-darwin8.
This fixes bug 15821 similarly to the powerpc64-linux fix for bug 14779.
Patch by David Fang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181449
91177308-0d34-0410-b5e6-
96231b3b80d8
Stepan Dyatkovskiy [Wed, 8 May 2013 14:51:27 +0000 (14:51 +0000)]
For r181148: fixed warning 'enumeral and non-enumeral type in conditional expression'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181437
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 8 May 2013 14:41:29 +0000 (14:41 +0000)]
Add myself as SystemZ code owner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181434
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 8 May 2013 14:23:43 +0000 (14:23 +0000)]
Add SystemZ feats to CodeGenerator.rst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181431
91177308-0d34-0410-b5e6-
96231b3b80d8
Michel Danzer [Wed, 8 May 2013 13:07:29 +0000 (13:07 +0000)]
R600/SI: Add lit tests for llvm.SI.imageload and llvm.SI.resinfo intrinsics
Adapted from the llvm.SI.sample test.
Reviewed-by: Christian König <christian.koenig@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181425
91177308-0d34-0410-b5e6-
96231b3b80d8
Hal Finkel [Wed, 8 May 2013 12:16:14 +0000 (12:16 +0000)]
PPCInstrInfo::optimizeCompareInstr should not optimize FP compares
The floating-point record forms on PPC don't set the condition register bits
based on a comparison with zero (like the integer record forms do), but rather
based on the exception status bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181423
91177308-0d34-0410-b5e6-
96231b3b80d8
Mihai Popa [Wed, 8 May 2013 09:41:12 +0000 (09:41 +0000)]
This patch fixes two tests marked as XFAIL among the ARM assembler tests.
The reference encoding is correct, but written in the wrong byte order (these are Thumb tests, while the reference is in ARM byte order).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181420
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 8 May 2013 09:31:10 +0000 (09:31 +0000)]
Add libcxx and clang-tools-extra to the testing thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181418
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 8 May 2013 09:23:53 +0000 (09:23 +0000)]
Add clang-tools-extra to the list of things to tag for the release.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181402
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 8 May 2013 09:00:10 +0000 (09:00 +0000)]
Fix a bug in codegenprep where it was losing track of values OptimizeMemoryInst
by switching to a ValueMap. Patch by Andrea DiBiagio!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181397
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Wed, 8 May 2013 06:44:42 +0000 (06:44 +0000)]
DAGCombiner: Simplify inverted bit tests
Fold (xor (and x, y), y) -> (and (not x), y)
This removes an opportunity for a constant to appear twice.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181395
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Wed, 8 May 2013 06:01:41 +0000 (06:01 +0000)]
Debug Info: Support DW_TAG_imported_declaration
This provides basic functionality for imported declarations. For
subprograms and types some amount of lazy construction is supported (so
the definition of a function can proceed the using declaration), but it
still doesn't handle declared-but-not-defined functions (since we don't
generally emit function declarations).
Variable support is really rudimentary at the moment - simply looking up
the existing definition with no support for out of order (declaration,
imported_module, then definition).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181392
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Wed, 8 May 2013 06:01:38 +0000 (06:01 +0000)]
Finish renaming constructImportedModuleDIE to constructImportedEntityDIE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181391
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 8 May 2013 00:58:51 +0000 (00:58 +0000)]
Pass the MDNode in and do the insertion at compile unit creation time
instead of relying upon an extra call to finish initializing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181383
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 8 May 2013 00:11:10 +0000 (00:11 +0000)]
Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181378
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 7 May 2013 22:15:06 +0000 (22:15 +0000)]
Add the libc++ project to those we tag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181371
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Tue, 7 May 2013 21:55:37 +0000 (21:55 +0000)]
LoopVectorizer: Improve reduction variable identification
The two nested loops were confusing and also conservative in identifying
reduction variables. This patch replaces them by a worklist based approach.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181369
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Tue, 7 May 2013 21:40:58 +0000 (21:40 +0000)]
Fix a bug in the MC asm parser evaluating expressions. It was treating:
A = 9
B = 3 * A - 2 * A + 1 as B = 3 * A - (2 * A + 1)
rdar://
13816516
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181366
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 7 May 2013 21:35:53 +0000 (21:35 +0000)]
Rename DIImportedModule to DIImportedEntity and allow imported declarations
DIBuilder::createImportedDeclaration isn't fully plumbed through (note,
lacking in AsmPrinter/DwarfDebug support) but this seemed like a
sufficiently useful division of code to make the subsequent patch(es)
easier to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181364
91177308-0d34-0410-b5e6-
96231b3b80d8
Charles Davis [Tue, 7 May 2013 21:14:15 +0000 (21:14 +0000)]
MCStreamer: Also clear vector of W64UnwindInfos on reset().
Patch by Kai Nacke!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181363
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 7 May 2013 20:56:33 +0000 (20:56 +0000)]
Remove redundant check and use cached FrameArray values.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181355
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 7 May 2013 20:53:59 +0000 (20:53 +0000)]
Remove exception handling support from the old JIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181354
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 7 May 2013 20:44:22 +0000 (20:44 +0000)]
Change version to 3.4 in the cmake build too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181353
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 7 May 2013 20:31:28 +0000 (20:31 +0000)]
We're in 3.4 land now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181350
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 7 May 2013 20:26:16 +0000 (20:26 +0000)]
Add empty release notes for 3.4.
The idea is that docs/ReleaseNotes.rst is 3.3 and will be copied to the
branch by the release manager just before creating the release
candidates.
This ReleaseNotes_34.rst will then be moved over ReleaseNotes.rst after
the 3.3 release.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181349
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Tue, 7 May 2013 20:24:18 +0000 (20:24 +0000)]
Fix vselect when getSetCCResultType returns a different type from the operands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181348
91177308-0d34-0410-b5e6-
96231b3b80d8
Preston Gurd [Tue, 7 May 2013 19:57:34 +0000 (19:57 +0000)]
Corrected Atom latencies for SSE SQRT instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181346
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Tue, 7 May 2013 19:53:00 +0000 (19:53 +0000)]
Hexagon: Fix Small Data support to handle -G 0 correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181344
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 7 May 2013 17:57:13 +0000 (17:57 +0000)]
Debug Info: Fix for break due to r181271
Apparently we didn't keep an association of Compile Unit metadata nodes
to DIEs so looking up that parental context failed & thus caused no
DW_TAG_imported_modules to be emitted at the CU scope. Fix this by
adding the mapping & sure up the test case to verify this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181339
91177308-0d34-0410-b5e6-
96231b3b80d8
Hal Finkel [Tue, 7 May 2013 17:49:55 +0000 (17:49 +0000)]
Cleanup PPCInstrInfo::optimizeCompareInstr
Implement suggestions by Bill Schmidt in post-commit review. No functionality
change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181338
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 7 May 2013 17:34:35 +0000 (17:34 +0000)]
Add two points to release notes about recent command line library changes.
Patch by Dan Liew!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181335
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Tue, 7 May 2013 17:12:35 +0000 (17:12 +0000)]
Reverting r181331.
Missing file, HexagonSplitConst32AndConst64.cpp, from lib/Target/Hexagon/CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181334
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Tue, 7 May 2013 16:42:15 +0000 (16:42 +0000)]
Hexagon: Fix Small Data support to handle -G 0 correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181331
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 7 May 2013 15:52:32 +0000 (15:52 +0000)]
Mention SystemZ in the release notes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181328
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Tue, 7 May 2013 15:06:29 +0000 (15:06 +0000)]
Hexagon: Set accessSize and addrMode on all load/store instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181324
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Kuperstein [Tue, 7 May 2013 14:05:33 +0000 (14:05 +0000)]
Re-enable AVX detection on x64 platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181313
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 7 May 2013 12:56:31 +0000 (12:56 +0000)]
[SystemZ] Fix InitMCCodeGenInfo call
createSystemZMCCodeGenInfo was not passing the optimization level to
InitMCCodeGenInfo(), so -O0 would be ignored. Fixes DebugInfo/namespace.ll
after the changes in r181271.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181312
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 7 May 2013 12:29:17 +0000 (12:29 +0000)]
Note that EH is now supported in MCJIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181305
91177308-0d34-0410-b5e6-
96231b3b80d8
Timur Iskhodzhanov [Tue, 7 May 2013 07:47:47 +0000 (07:47 +0000)]
Fix the VS2010 build broken by r181271
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181296
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Tue, 7 May 2013 06:17:14 +0000 (06:17 +0000)]
Correct logical shift documentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181290
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Tue, 7 May 2013 04:37:05 +0000 (04:37 +0000)]
LoopVectorize: getConsecutiveVector must respect signed arithmetic
We were passing an i32 to ConstantInt::get where an i64 was needed and we must
also pass the sign if we pass negatives numbers. The start index passed to
getConsecutiveVector must also be signed.
Should fix PR15882.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181286
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 6 May 2013 23:33:07 +0000 (23:33 +0000)]
DebugInfo: Support imported modules in lexical blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181271
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:19 +0000 (23:02 +0000)]
R600/SI: Add intrinsic for MIMG IMAGE_GET_RESINFO opcode
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181269
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:15 +0000 (23:02 +0000)]
R600/SI: Handle arbitrary destination type in SITargetLowering::adjustWritemask
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181268
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:12 +0000 (23:02 +0000)]
R600/SI: Add intrinsic for texture image loading
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181267
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:07 +0000 (23:02 +0000)]
R600/SI: Add pattern for uint_to_fp
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181266
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:04 +0000 (23:02 +0000)]
R600/SI: Add patterns for integer maxima / minima
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181265
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:00 +0000 (23:02 +0000)]
R600/SI: Add pattern for AMDGPU.trunc intrinsic
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181263
91177308-0d34-0410-b5e6-
96231b3b80d8
Krzysztof Parzyszek [Mon, 6 May 2013 21:58:00 +0000 (21:58 +0000)]
Print IR from Hexagon MI passes with -print-before/after-all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181255
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 6 May 2013 21:56:35 +0000 (21:56 +0000)]
Implemented public interface for modifying registered (not positional or sink options) command line options at runtime.
Patch by Dan Liew!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181254
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 6 May 2013 21:56:23 +0000 (21:56 +0000)]
Support command line option categories.
Patch by Dan Liew!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181253
91177308-0d34-0410-b5e6-
96231b3b80d8
Krzysztof Parzyszek [Mon, 6 May 2013 21:25:45 +0000 (21:25 +0000)]
Cleanup of the HexagonTargetMachine setup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181250
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Mon, 6 May 2013 21:21:31 +0000 (21:21 +0000)]
InstCombine: (X ^ signbit) + C -> X + (signbit ^ C)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181249
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 6 May 2013 21:19:44 +0000 (21:19 +0000)]
Hoist boundary condition out of loop header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181248
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 6 May 2013 21:19:41 +0000 (21:19 +0000)]
Untabify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181247
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 6 May 2013 20:57:23 +0000 (20:57 +0000)]
Reduce attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181245
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 6 May 2013 20:11:21 +0000 (20:11 +0000)]
Split Alignment out of the Section Characteristics.
The alignment is just a byte in the middle of Characteristics, not an
independent flag. Making it an independent field in the yaml
representation makes it more yamlio friendly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181243
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Mon, 6 May 2013 18:49:23 +0000 (18:49 +0000)]
Hexagon: Add multiclass/encoding bits for the New-Value Jump instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181235
91177308-0d34-0410-b5e6-
96231b3b80d8
Jean-Luc Duprat [Mon, 6 May 2013 18:45:16 +0000 (18:45 +0000)]
Test results verified using FileCheck rather than grep | count
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181234
91177308-0d34-0410-b5e6-
96231b3b80d8
Krzysztof Parzyszek [Mon, 6 May 2013 18:38:37 +0000 (18:38 +0000)]
Make references to HexagonTargetMachine "const".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181233
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 6 May 2013 18:19:24 +0000 (18:19 +0000)]
Remove some redundant includes in llvm-mc.cpp.
Patch by Jun Koi!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181231
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 6 May 2013 17:58:18 +0000 (17:58 +0000)]
Rotate multi-exit loops even if the latch was simplified.
Test case by Michele Scandale!
Fixes PR10293: Load not hoisted out of loop with multiple exits.
There are few regressions with this patch, now tracked by
rdar:
13817079, and a roughly equal number of improvements. The
regressions are almost certainly back luck because LoopRotate has very
little idea of whether rotation is profitable. Doing better requires a
more comprehensive solution.
This checkin is a quick fix that lacks generality (PR10293 has
a counter-example). But it trivially fixes the case in PR10293 without
interfering with other cases, and it does satify the criteria that
LoopRotate is a loop canonicalization pass that should avoid
heuristics and special cases.
I can think of two approaches that would probably be better in
the long run. Ultimately they may both make sense.
(1) LoopRotate should check that the current header would make a good
loop guard, and that the loop does not already has a sufficient
guard. The artifical SimplifiedLoopLatch check would be unnecessary,
and the design would be more general and canonical. Two difficulties:
- We need a strong guarantee that we won't endlessly rotate, so the
analysis would need to be precise in order to avoid the
SimplifiedLoopLatch precondition.
- Analysis like this are usually based on SCEV, which we don't want to
rely on.
(2) Rotate on-demand in late loop passes. This could even be done by
shoving the loop back on the queue after the optimization that needs
it. This could work well when we find LICM opportunities in
multi-branch loops. This requires some work, and it doesn't really
solve the problem of SCEV wanting a loop guard before the analysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181230
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 17:50:57 +0000 (17:50 +0000)]
R600: Remove dead code from the CodeEmitter v2
v2:
- Replace switch statement with TSFlags query
Reviewed-by: Vincent Lejeune <vljn@ovi.com>
Tested-By: Aaron Watry <awatry@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181229
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 17:50:51 +0000 (17:50 +0000)]
R600: Emit config values in register / value pairs
Reviewed-by: Vincent Lejeune <vljn@ovi.com>
Tested-By: Aaron Watry <awatry@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181228
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 6 May 2013 17:50:50 +0000 (17:50 +0000)]
Remove unnecessary instance variable and rework logic accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181227
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 6 May 2013 17:50:46 +0000 (17:50 +0000)]
Grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181226
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 17:50:44 +0000 (17:50 +0000)]
R600: Stop emitting the instruction type byte before each instruction
Reviewed-by: Vincent Lejeune <vljn@ovi.com>
Tested-By: Aaron Watry <awatry@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181225
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 6 May 2013 17:50:42 +0000 (17:50 +0000)]
Don't emit .dwo sections unless they exist.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181224
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 17:50:26 +0000 (17:50 +0000)]
R600: Emit ISA for CALL_FS_* instructions
Reviewed-by: Vincent Lejeune <vljn@ovi.com>
Tested-By: Aaron Watry <awatry@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181223
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 17:28:30 +0000 (17:28 +0000)]
[SystemZ] Update non-pic DWARF encodings
As pointed out by Rafael Espindola, we should match the DWARF encodings
produced by GCC in both pic and non-pic modes. This was not the case
for the non-pic case.
This patch changes all DWARF encodings to DW_EH_PE_absptr for the
non-pic case, just like GCC does. The test case is updated to check
for both variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181222
91177308-0d34-0410-b5e6-
96231b3b80d8
Adhemerval Zanella [Mon, 6 May 2013 17:21:23 +0000 (17:21 +0000)]
PowerPC: Fix unimplemented relocation on ppc64
This patch handles the R_PPC64_REL64 relocation type for powerpc64
for mcjit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181220
91177308-0d34-0410-b5e6-
96231b3b80d8
Jean-Luc Duprat [Mon, 6 May 2013 17:18:47 +0000 (17:18 +0000)]
Fix add4.ll test cmdline so that it passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181219
91177308-0d34-0410-b5e6-
96231b3b80d8
Jean-Luc Duprat [Mon, 6 May 2013 16:55:50 +0000 (16:55 +0000)]
Provide InstCombines for the following 3 cases:
A * (1 - (uitofp i1 C)) -> select C, 0, A
B * (uitofp i1 C) -> select C, B, 0
select C, 0, A + select C, B, 0 -> select C, B, A
These come up in code that has been hand-optimized from a select to a linear blend,
on platforms where that may have mattered. We want to undo such changes
with the following transform:
A*(1 - uitofp i1 C) + B*(uitofp i1 C) -> select C, A, B
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181216
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Mon, 6 May 2013 16:51:08 +0000 (16:51 +0000)]
AArch64: use MCJIT by default and enable related tests.
This just enables some testing I'd missed after implementing MCJIT
support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181215
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:23:07 +0000 (16:23 +0000)]
[SystemZ] Add to --enable-targets=all
This patch finally enables the SystemZ target in the default build
(with --enable-targets=all).
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181209
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:22:34 +0000 (16:22 +0000)]
[SystemZ] Add configure bits
This patch wires up the SystemZ target in configure, so that it can now be
built using --enable-targets=systemz. It is not yet included in the default
build (--enable-targets=all); this will be done by a follow-up patch.
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181208
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:21:50 +0000 (16:21 +0000)]
[SystemZ] Set up JIT/MCJIT test cases
This patch adds the necessary configuration bits and #ifdef's to set up
the JIT/MCJIT test cases for SystemZ. Like other recent targets, we do
fully support MCJIT, but do not support the old JIT at all. Set up the
lit config files accordingly, and disable old-JIT unit tests.
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181207
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:20:58 +0000 (16:20 +0000)]
[SystemZ] Add MC test cases
This adds all MC tests for the SystemZ target.
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181206
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:18:29 +0000 (16:18 +0000)]
[SystemZ] Add DebugInfo test cases
This adds all DebugInfo tests for the SystemZ target.
This version of the patch incorporates feedback from reviews by
Eric Christopher and Rafael Espindola. Thanks to all reviewers!
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181205
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:17:29 +0000 (16:17 +0000)]
[SystemZ] Add CodeGen test cases
This adds all CodeGen tests for the SystemZ target.
This version of the patch incorporates feedback from a review by
Sean Silva. Thanks to all reviewers!
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181204
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:15:19 +0000 (16:15 +0000)]
[SystemZ] Add back end
This adds the actual lib/Target/SystemZ target files necessary to
implement the SystemZ target. Note that at this point, the target
cannot yet be built since the configure bits are missing. Those
will be provided shortly by a follow-on patch.
This version of the patch incorporates feedback from reviews by
Chris Lattner and Anton Korobeynikov. Thanks to all reviewers!
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181203
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:11:12 +0000 (16:11 +0000)]
[SystemZ] Define DWARF encoding
This is another patch in preparation for adding the SystemZ target.
It defines the appropriate values for DWARF encodings; the intent
is to be compatible with what GCC currently does on the target.
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181201
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 16:10:35 +0000 (16:10 +0000)]
Simplify JIT unit test #ifdefs
Several platforms need to disable all old-JIT unit tests, since they only
support the new MCJIT. This currently done via #ifdef'ing out those tests
in the ExecutionEngine/JIT/*.cpp files. As those #ifdef's have grown
historically, we now have a number of repeated directives which -in total-
cover nearly the whole file, but leave a couple of helper functions out.
When building the tests with clang itself, those helper functions now
cause spurious "unused function" warnings.
To fix those warnings, and also to remove the duplicate #ifdef conditions
and make it easier to disable the tests for a new target, this patch
consolidates the #ifdefs into a single one per file, which covers all
the tests including all helper routines.
Tested on PowerPC and SystemZ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181200
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 6 May 2013 13:30:52 +0000 (13:30 +0000)]
Free the exception object. Should fix the vg bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181195
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Mon, 6 May 2013 11:16:57 +0000 (11:16 +0000)]
[PowerPC] Fix memory corruption in AsmParser
As pointed out by Evgeniy Stepanov, assigning a std::string temporary
to a StringRef is not a good idea. Rework MatchRegisterName to avoid
using the .lower routine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181192
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 6 May 2013 08:55:45 +0000 (08:55 +0000)]
Fix formatting. Patch by o11c.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181189
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Kuperstein [Mon, 6 May 2013 08:06:13 +0000 (08:06 +0000)]
Fix slightly too aggressive conact_vector optimization.
(Would sometimes optimize away conacts used to extend a vector with undef values)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181186
91177308-0d34-0410-b5e6-
96231b3b80d8