- Jan 24, 2017
-
-
Ahmed Bougacha authored
Since r279760, we've been marking as legal operations on narrow integer types that have wider legal equivalents (for instance, G_ADD s8). Compared to legalizing these operations, this reduced the amount of extends/truncates required, but was always a weird legalization decision made at selection time. So far, we haven't been able to formalize it in a way that permits the selector generated from SelectionDAG patterns to be sufficient. Using a wide instruction (say, s64), when a narrower instruction exists (s32) would introduce register class incompatibilities (when one narrow generic instruction is selected to the wider variant, but another is selected to the narrower variant). It's also impractical to limit which narrow operations are matched for which instruction, as restricting "narrow selection" to ranges of types clashes with potentially incompatible instruction predicates. Concerns were also raised regarding MIPS64's sign-extended register assumptions, as well as wrapping behavior. See discussions in https://reviews.llvm.org/D26878. Instead, legalize the operations. Should we ever revert to selecting these narrow operations, we should try to represent this more accurately: for instance, by separating a "concrete" type on operations, and an "underlying" type on vregs, we could move the "this narrow-looking op is really legal" decision to the legalizer, and let the selector use the "underlying" vreg type only, which would be guaranteed to map to a register class. In any case, we eventually should mitigate: - the performance impact by selecting no-op extract/truncates to COPYs (which we currently do), and the COPYs to register reuses (which we don't do yet). - the compile-time impact by optimizing away extract/truncate sequences in the legalizer. llvm-svn: 292827
-
Steven Wu authored
Try fix the testcase r292824 (failing on some bots) by reduce it to the minimal. If this fix doesn't work, I will revert this test. llvm-svn: 292826
-
Javed Absar authored
This is a series of patches to enable adding of machine sched models for ARM processors easier and compact. They define new sched-readwrites for groups of ARM instructions. This has been missing so far, and as a consequence, machine scheduler models for individual sub-targets have tended to be larger than they needed to be. The current patch focuses on floating-point instructions. Reviewers: Diana Picus (rovka), Renato Golin (rengolin) Differential Revision: https://reviews.llvm.org/D28194 llvm-svn: 292825
-
Steven Wu authored
Summary: Add a new load command LC_BUILD_VERSION. It is a generic version of LC_*_VERSION_MIN load_command used on Apple platforms. Instead of having a seperate load command for each platform, LC_BUILD_VERSION is recording platform info as an enum. It also records SDK version, min_os, and tools that used to build the binary. rdar://problem/29781291 Reviewers: enderby Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D29044 llvm-svn: 292824
-
Marshall Clow authored
llvm-svn: 292823
-
Marshall Clow authored
llvm-svn: 292822
-
Alexey Bataev authored
llvm-svn: 292821
-
Paul Robinson authored
Differential Revision: http://reviews.llvm.org/D28620 llvm-svn: 292819
-
Matt Arsenault authored
Can't for fma/mad since it seems they can't have flags currently. llvm-svn: 292818
-
Matthias Braun authored
Addendum to r292575 llvm-svn: 292817
-
Matt Arsenault authored
There are no scalar FP types that can be extended. llvm-svn: 292816
-
Xinliang David Li authored
Differential Revision: http://reviews.llvm.org/D28967 llvm-svn: 292815
-
Matt Arsenault authored
llvm-svn: 292814
-
Kostya Serebryany authored
llvm-svn: 292813
-
Sanjay Patel authored
llvm-svn: 292812
-
Richard Smith authored
llvm-svn: 292811
-
Marshall Clow authored
llvm-svn: 292809
-
Marshall Clow authored
llvm-svn: 292806
-
Alex Lorenz authored
rdar://23454249 Differential Revision: https://reviews.llvm.org/D28514 llvm-svn: 292805
-
Anastasia Stulova authored
- Removed duplicated word typo. - Made coherent across multiple similar diagnostics. llvm-svn: 292804
-
Dehao Chen authored
llvm-svn: 292803
-
David Blaikie authored
Patch crashing on a bootstrapping sanitizer bot: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/679 Reverting while I investigate. This reverts commit r292768. llvm-svn: 292801
-
Artem Dergachev authored
When a block within a function accesses a function's static local variable, this local is captured by reference rather than copied to the heap. Therefore this variable's memory space is known: StaticGlobalSpaceRegion. Used to be UnknownSpaceRegion, same as for stack locals. Fixes a false positive in MacOSXAPIChecker. rdar://problem/30105546 Differential revision: https://reviews.llvm.org/D28946 llvm-svn: 292800
-
George Rimar authored
Thanks to Meador Ingle for noticing. llvm-svn: 292799
-
Chris Bieneman authored
Use ASSERT_* instead of EXPECT_* for error condition. llvm-svn: 292798
-
Piotr Padlewski authored
Summary: Next round of extra tests for MSSA. I have a prototype invariant.group handling implementation that fixes all the FIXMEs, and I think it will be easier to see what is the difference if I firstly post this, and then only fix fixits. Reviewers: george.burgess.iv, dberlin Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D29022 llvm-svn: 292797
-
Krasimir Georgiev authored
Summary: With the introduction of LK_ObjC, the comment line for LK_Cpp became obsolete. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D29033 llvm-svn: 292796
-
- Jan 23, 2017
-
-
Pavel Labath authored
Summary: getcwd() is not available (well.. um.. deprecated?) on windows, and the way PosixApi.h is providing it causes strange compile errors when it's included in the wrong order. The best way to avoid that is to just not use chdir. This replaces all uses of getcwd in generic code. There are still a couple of more uses, but these are in platform-specific code. chdir() is causing a similar problem, but for that there is no llvm equivalent for that (yet). Reviewers: zturner Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D28858 llvm-svn: 292795
-
Arpith Chacko Jacob authored
The DSAChecker code in SemaOpenMP looks at the captured statement associated with an OpenMP directive. A combined directive such as 'target parallel' has nested capture statements, which have to be fully traversed before executing the DSAChecker. This is a patch to perform the traversal for such combined directives. Reviewers: ABataev Differential Revision: https://reviews.llvm.org/D29026 llvm-svn: 292794
-
Simon Pilgrim authored
llvm-svn: 292793
-
Amaury Sechet authored
llvm-svn: 292792
-
Martin Bohme authored
Summary: This reverts commit r292662. This change broke internal builds. Will provide a reproducer internally. Subscribers: pcc, mehdi_amini, cfe-commits, mgorny Differential Revision: https://reviews.llvm.org/D29025 llvm-svn: 292791
-
Jonas Paulsson authored
Vector immediate load instructions should have the isAsCheapAsAMove, isMoveImm and isReMaterializable flags set. With them, these instruction will get hoisted out of loops. Review: Ulrich Weigand llvm-svn: 292790
-
George Rimar authored
Previously we stored kept locals in a KeptLocalSyms arrays, belonged to files. Patch makes SymbolTableSection to store locals in Symbols member, that already present and was used for globals. SymbolTableSection already had NumLocals counter member, so change itself is trivial. That allows to simplify handling of -r, Body::DynsymIndex is no more used as "symbol table index" for relocatable output. Change was suggested during review of D28773 and opens road for D28612. Differential revision: https://reviews.llvm.org/D29021 llvm-svn: 292789
-
Eugene Leviant authored
llvm-svn: 292788
-
Antonio Maiorano authored
These tests fail for developers who place their build directories under the llvm root directory because llvm's own .clang-format file will be found. Anyway these cases are covered by FormatStyle.GetStyleOfFile tests (FormatTest.cpp). Differential Revision: https://reviews.llvm.org/D28983 llvm-svn: 292787
-
Malcolm Parsons authored
Summary: The performance-unnecessary-value-param check mangled inherited constructors, as the constructors' parameters do not have useful source locations. Fix this by ignoring implicit functions. Fixes PR31684. Reviewers: flx, alexfh, aaron.ballman Subscribers: madsravn, JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D29018 llvm-svn: 292786
-
Eugene Leviant authored
Differential revision: https://reviews.llvm.org/D28863 llvm-svn: 292785
-
Simon Pilgrim authored
Match generic mul behaviour so that <X x i64> multiply and muldq/muludq pattern act the same llvm-svn: 292784
-
Alexey Bataev authored
llvm-svn: 292783
-