summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-29Refactor test to be reused across architecturesDavid Blaikie2-3/+2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227487 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Remove erroneous REQUIRES: object-emission for asm test.David Blaikie1-2/+0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227486 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Missing test case for r227481David Blaikie1-0/+59
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227485 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29R600/SI: Implement enableAggressiveFMAFusionMatt Arsenault3-1/+399
Add tests for the various combines. This should always be at least cycle neutral on all subtargets for f64, and faster on some. For f32 we should prefer selecting v_mad_f32 over v_fma_f32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227484 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29R600/SI: Add subtarget feature for if f32 fma is fastMatt Arsenault5-5/+23
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227483 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29R600/SI: Fix tonga's basic scheduling modelMatt Arsenault1-1/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227482 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29DebugInfo: Teach Fast ISel to respect the debug location of comparisons in jumpsDavid Blaikie1-9/+9
The use of the DbgLoc in FastISel is probably something we should fix. It's prone to leaking the wrong location into instructions - we should have a clear chain of custody from the debug location of an IR Instruction to that of a MachineInstr to avoid such leakage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227481 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Disable compilation of llvm-pdbdump for versions of MSVC < 2013.Zachary Turner1-1/+4
Certain aspects of llvm-pdbdump require language support only present in MSVC 2013 and higher. Since this is strictly a utility, and since we hope to drop support for MSVC 2012 soon, don't build this unless MSVC 2013 or higher. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227479 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[fuzzer] fix warning in a test Kostya Serebryany1-2/+0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227478 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Compute the ELF SectionKind from the flags.Rafael Espindola21-393/+198
Any code creating an MCSectionELF knows ELF and already provides the flags. SectionKind is an abstraction used by common code that uses a plain MCSection. Use the flags to compute the SectionKind. This removes a lot of guessing and boilerplate from the MCSectionELF construction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227476 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[Hexagon] Deleting old variants of intrinsics and adding missing tests.Colin LeMahieu6-196/+155
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227474 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[lto] Disable dialog boxes on crash on Windows.Michael J. Spencer1-0/+7
This has to be done in the DLL because the state doesn't cross DLL boundaries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227471 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[Support][Windows] Unify dialog box suppression and print stack traces on abort.Michael J. Spencer3-20/+33
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227470 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[fuzzer] minor cleanup based on reviews: remove redundant includes, fix a ↵Kostya Serebryany3-4/+2
copy-pasto in tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227468 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[fuzzer] add FAQ section to the README.txt Kostya Serebryany1-1/+43
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227466 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Reverting r227452, which adds back the fuzzer library. Now excluding the ↵Aaron Ballman21-0/+903
fuzzer library based on LLVM_USE_SANITIZE_COVERAGE being set or unset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227464 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[Hexagon] Adding CR intrinsic tests.Colin LeMahieu2-0/+102
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227463 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29R600/SI: Remove stray debug statementsTom Stellard1-5/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227462 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29R600/SI: Define a schedule model and enable the generic machine schedulerTom Stellard32-110/+185
The schedule model is not complete yet, and could be improved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227461 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[Hexagon] Deleting unused classes.Colin LeMahieu1-1319/+0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227460 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Oops -- accidentally commit some debug code! Removing that code; NFC (this ↵Aaron Ballman1-3/+1
time for real). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227459 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[X86] Use single add/sub for large stack offsetsRobert Lougher2-13/+105
For large stack offsets the compiler generates multiple immediate mode sub/add instructions in the prologue/epilogue. This patch makes the compiler place the final amount to be added/subtracted into a register, which is then added/substracted with a single operation. Differential Revision: http://reviews.llvm.org/D7226 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227458 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[Hexagon] Adding XTYPE/PRED intrinsic tests. Converting predicate types to ↵Colin LeMahieu7-158/+393
i32 instead of i1. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227457 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Attempting to fix a build issue with MSVC 2012; NFCAaron Ballman1-3/+5
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227456 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[PowerPC] Complete setting the baseline for ppc64leBill Schmidt2-2/+10
Patch by Nemanja Ivanovic. As was uncovered by the failing test case (when run on non-PPC platforms), the feature set when compiling with -march=ppc64le was not being picked up. This change ensures that if the -mcpu option is not specified, the correct feature set is picked up regardless of whether we are on PPC or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227455 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Temporarily reverting the fuzzer library as it causes too many build issues ↵Aaron Ballman21-901/+0
for MSVC users. This reverts: 227445, 227395, 227389, 227357, 227254, 227252 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227452 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Make the test actually test what it's supposed to test. Add a test for the ↵Alex Rosenberg1-0/+17
from memory variant of vcvtph2ps for 256-bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227446 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Adding missing #includes to try to get this to compile on Windows with ↵Aaron Ballman6-0/+6
Visual Studio. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227445 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Remove unused tokens in the ll lexer.Sean Silva2-3/+0
Patch by Robin Eklind! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227442 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Use isMergeableConst now that it is sane.Rafael Espindola1-3/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227441 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Remove MergeableConst.Rafael Espindola3-6/+5
Only the specific ones (MergeableConst4, MergeableConst8, MergeableConst16) are handled specially. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227440 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[LoopReroll] Refactor most of reroll() into a helper classJames Molloy1-220/+273
reroll() was slightly monolithic and a pain to modify. Refactor a bunch of its state from local variables to member variables of a helper class, and do some trivial simplification while we're there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227439 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Cleanup a few tests on sse4a machines and FileCheckize along the way.Alex Rosenberg6-9/+17
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227437 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29EHPrepare: Remove leftover initialization code for DomTrees.Benjamin Kramer2-27/+10
While there modernize some loops. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227436 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Use enum values. NFC.Rafael Espindola1-3/+3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227435 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Don't create multiple mergeable sections with -fdata-sections.Rafael Espindola2-12/+13
ELF has support for sections that can be split into fixed size or null terminated entities. Since these sections can be split by the linker, it is not necessary to split them in codegen. This reduces the combined .o size in a llvm+clang build from 202,394,570 to 173,819,098 bytes. The time for linking clang with gold (on a VM, on a laptop) goes from 2.250089985 to 1.383001792 seconds. The flip side is the size of rodata in clang goes from 10,926,785 to 10,929,345 bytes. The increase seems to be because of http://sourceware.org/bugzilla/show_bug.cgi?id=17902. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227431 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[Mips][Disassembler] When disassembler meets cache/pref instructions for r6 ↵Vladimir Medic8-7/+31
it crashes as the access to operands array is out of range. This patch adds dedicated decoder method for R6 CACHE_HINT_DESC class that properly handles decoding of these instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227430 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Add a missing Tag_DIV_use test for Cortex-M7.Charlie Turner1-0/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227429 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29CommandLineParser: Avoid non-static member nitializer(s).NAKAMURA Takumi1-2/+4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227428 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Fix the preprocessor checks used to determine if backtraces have been enabled.Owen Anderson1-6/+6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227424 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Use the existing build configuration parameter ENABLE_BACKTRACE to compile ↵Owen Anderson1-0/+16
out all pretty stack trace support when backtraces are disabled. This has the nice secondary effect of allowing LLVM to continue to build for targets without __thread or thread_local support to continue to work so long as they build without support for backtraces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227423 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[ELFYAML] Provide default value 0 for YAML relocation addendum fieldSimon Atanasyan4-15/+1
Follow up to r227318. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227422 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Remove an unused private field added r227405 to fix a Clang warning.Chandler Carruth1-2/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227415 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[LPM] Try again to appease powerpc64 in its self host. I've been unableChandler Carruth1-3/+4
to get a powerpc64 host so that I can reproduce and test this, but it only impacts that platform so trying the only other realistic option. According to Ulrich, who debugged this initially, initial-exec is likely to be sufficient for our needs and not subject to this bug. Will watch the build bots to see. If this doesn't work, I'll be forced to cut a really ugly pthread-based approach into the primary user (our stack trace printing) as that user cannot use the ThreadLocal implementation due to lifetime issues. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227414 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[LPM] Fix an "obvious" typo from r227411. Really sorry for the noise.Chandler Carruth1-1/+1
Too many cases to compile everything quickly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227412 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29[LPM] Clean up the use of TLS in pretty stack trace and disable itChandler Carruth2-20/+37
entirely when threads are not enabled. This should allow anyone who needs to bootstrap or cope with a host loader without TLS support to limp along without threading support. There is still some bug in the PPC TLS stuff that is not worked around. I'm getting access to a machine to reproduce and debug this further. There is some chance that I'll have to add a terrible workaround for PPC. There is also some problem with iOS, but I have no ability to really evaluate what the issue is there. I'm leaving it to folks maintaining that platform to suggest a path forward -- personally I don't see any useful path forward that supports threading in LLVM but does so without support for *very basic* TLS. Note that we don't need more than some pointers, and we don't need constructors, destructors, or any of the other fanciness which remains widely unimplemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227411 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Remove unused variableReid Kleckner1-2/+0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227408 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Add a Windows EH preparation pass that zaps resumesReid Kleckner8-3/+199
If the personality is not a recognized MSVC personality function, this pass delegates to the dwarf EH preparation pass. This chaining supports people on *-windows-itanium or *-windows-gnu targets. Currently this recognizes some personalities used by MSVC and turns resume instructions into traps to avoid link errors. Even if cleanups are not used in the source program, LLVM requires the frontend to emit a code path that resumes unwinding after an exception. Clang does this, and we get unreachable resume instructions. PR20300 covers cleaning up these unreachable calls to resume. Reviewers: majnemer Differential Revision: http://reviews.llvm.org/D7216 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227405 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Remove getSubtargetImpl from AArch64ISelLowering and cache theEric Christopher3-13/+10
correct subtarget by passing it in during the constructor as TargetLowering is Subtarget specific. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227402 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-29Remove getSubtargetImpl from ARMISelLowering and cache theEric Christopher3-33/+22
correct subtarget by passing it in during the constructor as TargetLowering is Subtarget specific. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227401 91177308-0d34-0410-b5e6-96231b3b80d8