- Aug 21, 2015
-
-
Alexey Bataev authored
According to standard the 'uval' modifier declares the address of the original list item to have an invariant value for all iterations of the associated loop(s). Patch improves codegen for this qualifier by removing usage of the original reference variable and replacing by referenced l-value. llvm-svn: 245674
-
Mohammad Shahid authored
llvm-svn: 245673
-
Peter Collingbourne authored
llvm-svn: 245672
-
Peter Collingbourne authored
llvm-svn: 245671
-
Peter Collingbourne authored
llvm-svn: 245670
-
Saleem Abdulrasool authored
MachO and COFF do not support aliases. Restrict the alias to ELF targets. This should also fix the Darwin build. Make the FNALIAS usage an error on non-ELF targets. llvm-svn: 245669
-
James Y Knight authored
Note: I do not implement a base pointer, so it's still impossible to have dynamic realignment AND dynamic alloca in the same function. This also moves the code for determining the frame index reference into getFrameIndexReference, where it belongs, instead of inline in eliminateFrameIndex. [Begin long-winded screed] Now, stack realignment for Sparc is actually a silly thing to support, because the Sparc ABI has no need for it -- unlike the situation on x86, the stack is ALWAYS aligned to the required alignment for the CPU instructions: 8 bytes on sparcv8, and 16 bytes on sparcv9. However, LLVM unfortunately implements user-specified overalignment using stack realignment support, so for now, I'm going to go along with that tradition. GCC instead treats objects which have alignment specification greater than the maximum CPU-required alignment for the target as a separate block of stack memory, with their own virtual base pointer (which gets aligned). Doing it that way avoids needing to implement per-target support for stack realignment, except for the targets which *actually* have an ABI-specified stack alignment which is too small for the CPU's requirements. Further unfortunately in LLVM, the default canRealignStack for all targets effectively returns true, despite that implementing that is something a target needs to do specifically. So, the previous behavior on Sparc was to silently ignore the user's specified stack alignment. Ugh. Yet MORE unfortunate, if a target actually does return false from canRealignStack, that also causes the user-specified alignment to be *silently ignored*, rather than emitting an error. (I started looking into fixing that last, but it broke a bunch of tests, because LLVM actually *depends* on having it silently ignored: some architectures (e.g. non-linux i386) have smaller stack alignment than spilled-register alignment. But, the fact that a register needs spilling is not known until within the register allocator. And by that point, the decision to not reserve the frame pointer has been frozen in place. And without a frame pointer, stack realignment is not possible. So, canRealignStack() returns false, and needsStackRealignment() then returns false, assuming everyone can just go on their merry way assuming the alignment requirements were probably just suggestions after-all. Sigh...) Differential Revision: http://reviews.llvm.org/D12208 llvm-svn: 245668
-
James Y Knight authored
For some reason, clang had been treating a command like: clang -static -fPIC foo.c as if it should be compiled without the PIC relocation model. This was incorrect: -static should be affecting only the linking model, and -fPIC only the compilation. This new behavior also matches GCC. This is a follow-up from a review comment on r245447. Differential Revision: http://reviews.llvm.org/D12208 llvm-svn: 245667
-
Richard Trieu authored
Now that -Winfinite-recursion no longer uses recursive calls to before path analysis, several bits of the code can be improved. The main changes: 1) Early return when finding a path to the exit block without a recursive call 2) Moving the states vector into checkForRecursiveFunctionCall instead of passing it in by reference 3) Change checkForRecursiveFunctionCall to return a bool when the warning should be emitted. 4) Use the State vector instead of storing it in the Stack vector. llvm-svn: 245666
-
Saleem Abdulrasool authored
Fix out-of-bounds array access when setting arm float registers. Patch by Leandro Graciá Gil! llvm-svn: 245665
-
Richard Smith authored
non-visible definition, skip the new definition to avoid ending up with a function with multiple definitions. llvm-svn: 245664
-
Josh Gao authored
Reviewers: compnerd Subscribers: asl, llvm-commits Differential Revision: http://reviews.llvm.org/D12091 llvm-svn: 245663
-
Peter Collingbourne authored
The module splitter splits a module into linkable partitions. It will be used to implement parallel LTO code generation. This initial version of the splitter does not attempt to deal with the somewhat subtle symbol visibility issues around module splitting. These will be dealt with in a future change. Differential Revision: http://reviews.llvm.org/D12132 llvm-svn: 245662
-
NAKAMURA Takumi authored
llvm-svn: 245661
-
Josh Gao authored
Summary: Implement more missing ARM EABI runtime functions. Reviewers: rengolin, compnerd Subscribers: pirama, srhines, danalbert, aemerson, llvm-commits Differential Revision: http://reviews.llvm.org/D12089 llvm-svn: 245648
-
Matthias Braun authored
llvm-svn: 245647
-
Gabor Horvath authored
Differential Revision: http://reviews.llvm.org/D11427 llvm-svn: 245646
-
Jason Molenda authored
This was breaking disassembly for arm machines that we force to be thumb mode all the time because we were only checking for llvm::Triple::arm. i.e. armv6m (ARM Cortex-M0) armv7m (ARM Cortex-M3) armv7em (ARM Cortex-M4) <rdar://problem/22334522> llvm-svn: 245645
-
Michael Zolotukhin authored
llvm-svn: 245644
-
Adrian Prantl authored
llvm-svn: 245643
-
Adrian Prantl authored
of the original source by David Blaikie (thanks!). llvm-svn: 245642
-
Matthias Braun authored
When producing conditional compare sequences for or operations we need to negate the operands and the finally tested flags. The thing is if we negate the finally tested flags this equals a logical negation of all previously emitted expressions. There was a case missing where we have to order OR expressions so they get emitted first. This fixes http://llvm.org/PR24459 llvm-svn: 245641
-
Matthias Braun authored
Create CMP;CCMP sequences from and/or trees does not gain us anything if the and/or tree is materialized to a GP register anyway. While most of the code already checked for hasOneUse() there was one important case missing. llvm-svn: 245640
-
Oleksiy Vyalov authored
http://reviews.llvm.org/D12025 llvm-svn: 245639
-
David Majnemer authored
Use the fact that add nuw always creates a larger bit pattern when trying to simplify comparisons. llvm-svn: 245638
-
Gabor Horvath authored
llvm-svn: 245637
-
Dan Gohman authored
llvm-svn: 245636
-
Sanjoy Das authored
Summary: This transform is never a pessimization at the IR level (since it replaces an `icmp` with another), and has potentiall payoffs: 1. It may make the `icmp` fold away or become loop invariant. 2. It may make the `A & (L - 1)` computation dead. This shows up in Java, in range checks generated by array accesses of the form `a[i & (a.length - 1)]`. Reviewers: reames, majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12210 llvm-svn: 245635
-
Stephane Sezer authored
Summary: This uses the .clang-format at the root of the LLDB repo and is just a mechanical change that precedes more work in this file. Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12217 llvm-svn: 245634
-
Michael Zolotukhin authored
llvm-svn: 245633
-
Michael Zolotukhin authored
llvm-svn: 245632
-
Zachary Turner authored
llvm-svn: 245631
-
Zachary Turner authored
This has known issues on Windows. Fixing this is tracked by http://llvm.org/pr21765 llvm-svn: 245630
-
Zachary Turner authored
llvm.org/pr24528 tracks fixing this test. llvm-svn: 245629
-
Zachary Turner authored
llvm.org/pr24527 tracks this bug. Makefile.rules does not know how to build static libraries on Windows. llvm-svn: 245628
-
Zachary Turner authored
This bug is tracked in llvm.org/pr21550, and also reproduces on FreeBSD apparently. llvm-svn: 245627
-
Zachary Turner authored
There might be an underlying race condition here that should be figured out, but this at least prevents the crash for the time being and doesn't appear to have any adverse effects. llvm-svn: 245626
-
Stephane Sezer authored
Summary: This is useful when dealing with Windows remote that use only the qXfer:libraries command which returns absolute base addresses, as opposed to qXfer:libraries-svr4 which returns relative offsets for module bases. Reviewers: clayborg, zturner, ADodds Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12204 llvm-svn: 245625
-
Chris Bieneman authored
[CMake] Turns out CMake was passing the space as part of the argument instead of separating two arguments. llvm-svn: 245624
-
Adrian Prantl authored
and make it always preserve debug locations, since all callers wanted this behavior anyway. This is addressing a post-commit review feedback for r245589. NFC (inside the LLVM tree). llvm-svn: 245622
-