- Dec 10, 2012
-
-
Daniel Jasper authored
Fix spacing before ",". llvm-svn: 169746
-
Hal Finkel authored
misched used GetUnderlyingObject in order to break false load/store dependencies, and the -enable-aa-sched-mi feature similarly relied on GetUnderlyingObject in order to ensure it is safe to use the aliasing analysis. Unfortunately, GetUnderlyingObject does not recurse through phi nodes, and so (especially due to LSR) all of these mechanisms failed for induction-variable-dependent loads and stores inside loops. This change replaces uses of GetUnderlyingObject with GetUnderlyingObjects (which will recurse through phi and select instructions) in misched. Andy reviewed, tested and simplified this patch; Thanks! llvm-svn: 169744
-
Michael Ilseman authored
llvm-svn: 169743
-
Sean Silva authored
PR14343 llvm-svn: 169742
-
Chandler Carruth authored
Accidental commit... git svn betrayed me. Sorry for the noise. llvm-svn: 169741
-
Chandler Carruth authored
Summary: Not all chips targeted by x86_64 have this feature, but a dramatically increasing number do. Specifying a chip-specific tuning parameter will continue to turn the feature on or off as appropriate for that particular chip, but the generic flag should try to achieve the best performance on the most widely available hardware. Today, the number of chips with fast UA access dwarfs those without in the x86-64 space. Note that this also brings LLVM's code generation for this '-march' flag more in line with that of modern GCCs. CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D195 llvm-svn: 169740
-
Chandler Carruth authored
Thanks to the PaX folks for noticing in review! We need some tests here, any sugestions welcome... llvm-svn: 169739
-
Alexander Kornienko authored
Reviewers: klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D198 llvm-svn: 169738
-
Manuel Klimek authored
llvm-svn: 169737
-
Alexander Potapenko authored
[ASan] Typo fix in memcpy() and memmove() interceptors: ASAN_WRITE_RANGE and ASAN_READ_RANGE were swapped. This has been spotted by Anna Zaks (ganna@apple.com) llvm-svn: 169736
-
Kostya Serebryany authored
llvm-svn: 169734
-
Kostya Serebryany authored
[asan] introduce asan_allocator2.cc, which will have the replacement for asan allocator (now, just a bit of boilerplate) llvm-svn: 169733
-
Alexander Potapenko authored
the client programs to notify the tools that sandboxing is about to be turned on. llvm-svn: 169732
-
Chandler Carruth authored
Intel chips. The model number rules were determined by inspecting Intel's documentation for their newer chip model numbers. My understanding is that all of the newer Intel chips have fast unaligned memory access, but if anyone is concerned about a particular chip, just shout. No tests updated; it's not clear we have dedicated tests for the chips' various features, but if anyone would like tests (or can point me at some existing ones), I'm happy to oblige. llvm-svn: 169730
-
Dmitry Vyukov authored
llvm-svn: 169729
-
Chandler Carruth authored
This visitor provides infrastructure for recursively traversing the use-graph of a pointer-producing instruction like an alloca or a malloc. It maintains a worklist of uses to visit, so it can handle very deep recursions. It automatically looks through instructions which simply translate one pointer to another (bitcasts and GEPs). It tracks the offset relative to the original pointer as long as that offset remains constant and exposes it during the visit as an APInt offset. Finally, it performs conservative escape analysis. However, currently it has some limitations that should be addressed going forward: 1) It doesn't handle vectors of pointers. 2) It doesn't provide a cheaper visitor when the constant offset tracking isn't needed. 3) It doesn't support non-instruction pointer values. The current functionality is exactly what is required to implement the SROA pointer-use visitors in terms of this one, rather than in terms of their own ad-hoc base visitor, which was always very poorly specified. SROA has been converted to use this, and the code there deleted which this utility now provides. Technically speaking, using this new visitor allows SROA to handle a few more cases than it previously did. It is now more aggressive in ignoring chains of instructions which look like they would defeat SROA, but in fact do not because they never result in a read or write of memory. While this is "neat", it shouldn't be interesting for real programs as any such chains should have been removed by others passes long before we get to SROA. As a consequence, I've not added any tests for these features -- it shouldn't be part of SROA's contract to perform such heroics. The goal is to extend the functionality of this visitor going forward, and re-use it from passes like ASan that can benefit from doing a detailed walk of the uses of a pointer. Thanks to Ben Kramer for the code review rounds and lots of help reviewing and debugging this patch. llvm-svn: 169728
-
Craig Topper authored
llvm-svn: 169727
-
NAKAMURA Takumi authored
llvm-svn: 169726
-
Manuel Klimek authored
100% sure. llvm-svn: 169725
-
NAKAMURA Takumi authored
llvm-svn: 169724
-
Michael J. Spencer authored
llvm-svn: 169721
-
Bill Wendling authored
llvm-svn: 169720
-
Chandler Carruth authored
When SROA was evaluating a mixture of i1 and i8 loads and stores, in just a particular case, it would tickle a latent bug where we compared bits to bytes rather than bits to bits. As a consequence of the latent bug, we would allow integers through which were not byte-size multiples, a situation the later rewriting code was never intended to handle. In release builds this could trigger all manner of oddities, but the reported issue in PR14548 was forming invalid bitcast instructions. The only downside of this fix is that it makes it more clear that SROA in its current form is not capable of handling mixed i1 and i8 loads and stores. Sometimes with the previous code this would work by luck, but usually it would crash, so I'm not terribly worried. I'll watch the LNT numbers just to be sure. llvm-svn: 169719
-
Michael J. Spencer authored
llvm-svn: 169718
-
Michael J. Spencer authored
llvm-svn: 169717
-
Michael J. Spencer authored
llvm-svn: 169716
-
Michael J. Spencer authored
llvm-svn: 169715
-
Dmitri Gribenko authored
Patch by Anthony Mykhailenko with small fixes by me. llvm-svn: 169714
-
- Dec 09, 2012
-
-
Benjamin Kramer authored
llvm-svn: 169713
-
Michael Ilseman authored
llvm-svn: 169712
-
Paul Redmond authored
- added function to VectorTargetTransformInfo to query cost of intrinsics - vectorize trivially vectorizable intrinsic calls such as sin, cos, log, etc. Reviewed by: Nadav llvm-svn: 169711
-
Michael Ilseman authored
llvm-svn: 169710
-
Paul Redmond authored
llvm-svn: 169709
-
Aaron Ballman authored
llvm-svn: 169705
-
Chris Lattner authored
llvm-svn: 169704
-
Jakub Staszak authored
No functionality change. llvm-svn: 169703
-
Sean Silva authored
Patch by Alexander Zinenko! llvm-svn: 169702
-
Jakub Staszak authored
llvm-svn: 169701
-
Dmitri Gribenko authored
llvm-svn: 169700
-
Dmitri Gribenko authored
Thanks to Sean Silva for pointing out! llvm-svn: 169699
-