- Oct 19, 2015
-
-
Johannes Doerfert authored
There are several different kinds of constants that could occur in a branch condition, however we can only handle the most interesting one namely constant integers. To this end we have to treat others as non-affine. This fixes bug 25244. llvm-svn: 250669
-
Johannes Doerfert authored
We build the schedule based on a traversal of the region and accumulate information for each loop in it. The total schedule is associated with the loop surrounding the SCoP, though it can happen that there are blocks in the SCoP which are part of loops that are only partially in the SCoP. Instead of associating information with them (they are not part of the SCoP and consequently are not modeled) we have to associate the schedule information with the surrounding loop if any. This fixes bug 25240. llvm-svn: 250668
-
Saleem Abdulrasool authored
The switch is fully covered, mark "default" as unreachable. NFC. llvm-svn: 250667
-
Nick Lewycky authored
emacs mode marker. (Changes left behind from another patch that ended up not working out.) llvm-svn: 250666
-
Saleem Abdulrasool authored
Do direct assignment of boolean values and regroup. Use StringSwitch instead of custom cases. NFC. llvm-svn: 250665
-
Johannes Doerfert authored
Accesses that have a relative offset (in bytes) that is not divisible by the type size (in bytes) will be represented as empty in the SCoP description. This is on its own not good but it also crashed the invariant load hoisting. This patch will fix the latter problem while the former should be addressed too. This fixes bug 25236. llvm-svn: 250664
-
Johannes Doerfert authored
If the base pointer of a load is invariant and defined in the SCoP but not loaded we cannot hoist the load as we would not hoist the base pointer definition. This fixes bug 25237. llvm-svn: 250663
-
Saleem Abdulrasool authored
There were a number of const qualifiers being cast away which caused warnings. This cluttered the output hiding real errors. Silence them by explicit casting. NFC. llvm-svn: 250662
-
Saleem Abdulrasool authored
Cleanup some unused variables. NFC. llvm-svn: 250661
-
Jakub Staszak authored
llvm-svn: 250660
-
- Oct 18, 2015
-
-
Rafael Espindola authored
Sometimes it is more natural to use a ArrayRef<uint8_t> than a StringRef to represent a range of bytes that is not, semantically, a string. This will be used in lld in a sec. llvm-svn: 250658
-
Dimitry Andric authored
Summary: Similar to rL248426 (which was a followup to rL248379 and rL248424), add the required libraries for OpenMP on the linker command line, and update the test case. Reviewers: emaste, theraven, joerg Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13822 llvm-svn: 250657
-
Simon Pilgrim authored
llvm-svn: 250656
-
Johannes Doerfert authored
Sorting is replaced by a demand driven code generation that will pre-load a value when it is needed or, if it was not needed before, at some point determined by the order of invariant accesses in the program. Only in very little cases this demand driven pre-loading will kick in, though it will prevent us from generating faulty code. An example where it is needed is shown in: test/ScopInfo/invariant_loads_complicated_dependences.ll Invariant loads that appear in parameters but are not on the top-level (e.g., the parameter is not a SCEVUnknown) will now be treated correctly. Differential Revision: http://reviews.llvm.org/D13831 llvm-svn: 250655 -
Johannes Doerfert authored
Preloaded values have to match the type of their counterpart in the original code and not the type of the base array. llvm-svn: 250654
-
Simon Pilgrim authored
llvm-svn: 250653
-
Johannes Doerfert authored
Polly can now be used as a analysis only tool as long as the code generation is disabled. However, we do not have an alternative to the independent blocks pass in place yet, though in the relevant cases this does not seem to impact the performance much. Nevertheless, a virtual alternative that allows the same transformations without changing the input region will follow shortly. llvm-svn: 250652
-
Simon Pilgrim authored
llvm-svn: 250651
-
Asaf Badouh authored
Differential Revision: http://reviews.llvm.org/D13769 llvm-svn: 250650
-
Igor Breger authored
Differential Revision: http://reviews.llvm.org/D13632 llvm-svn: 250649
-
Daniel Jasper authored
If a RegExp contains a character group with a quote (/["]/), the trailing end of it is first tokenized as a string literal, which leads to the merging code seeing an unbalanced bracket. This change parses regex literals from the left hand side. That simplifies the parsing code and also allows correctly handling escapes and character classes, hopefully correctly parsing all regex literals. Patch by Martin Probst, thank you. Review: http://reviews.llvm.org/D13765 llvm-svn: 250648
-
Craig Topper authored
llvm-svn: 250647
-
Craig Topper authored
Add an unnecessary makeArrayRef I add earlier. I didn't realize range-based for loops worked with arrays. llvm-svn: 250646
-
Craig Topper authored
llvm-svn: 250645
-
Craig Topper authored
[Sparc] Use MCPhysReg instead of unsigned to size static arrays of registers. Should reduce the table size. llvm-svn: 250644
-
Craig Topper authored
llvm-svn: 250643
-
Craig Topper authored
llvm-svn: 250642
-
Craig Topper authored
llvm-svn: 250641
-
Rafael Espindola authored
llvm-svn: 250640
-
Lang Hames authored
llvm-svn: 250639
-
Xinliang David Li authored
1. Key constant values (version, magic) and data structures related to raw and indexed profile format are moved into one centralized file: InstrProf.h. 2. Utility function such as MD5Hash computation is also moved to the common header to allow sharing with other components in the future. 3. A header data structure is introduced for Indexed format so that the reader and writer can always be in sync. 4. Added some comments to document different places where multiple definition of the data structure must be kept in sync (reader/writer, runtime, lowering etc). No functional change is intended. Differential Revision: http://reviews.llvm.org/D13758 llvm-svn: 250638
-
Tobias Grosser authored
Expressing this in terms of BlockGenerator::getOrCreateAlloca(const ScopArrayInfo *Array) does not work as the MemoryAccess BasePtr is in case of invariant load hoisting different to the ScopArrayInfo BasePtr. Until this is investigated and fixed, we move back to code that just uses the baseptr of MemoryAccess. llvm-svn: 250637
-
Sanjoy Das authored
llvm-svn: 250636
-
Sanjoy Das authored
llvm-svn: 250635
-
Sanjoy Das authored
llvm-svn: 250634
-
Sanjoy Das authored
llvm-svn: 250633
-
NAKAMURA Takumi authored
clang/test/Driver/ps4-linker-non-win.c: Tweak for cygwin like ps4-linker-win.c@250403. Cygwin seeks dependent libs along $PATH. llvm-svn: 250632
-
NAKAMURA Takumi authored
llvm-svn: 250631
-
NAKAMURA Takumi authored
llvm-svn: 250630
-
Daniel Jasper authored
llvm-svn: 250629
-