summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/LoopGenerators.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* [cleanup] Update Polly for moved header in LLVM r199082.Chandler Carruth2014-01-131-1/+1
| | | | llvm-svn: 199088
* Remove unneeded comma and update formattingTobias Grosser2013-08-241-2/+2
| | | | llvm-svn: 189177
* Update LoopInfo correctlyTobias Grosser2013-05-161-0/+19
| | | | | | | | | | When the Polly code generation was written we did not correctly update the LoopInfo data, but still claimed that the loop information is correct. This does not only lead to missed optimizations, but it can also cause miscompilations in case passes such as LoopSimplify are run after Polly. Reported-by: Sergei Larin <slarin@codeaurora.org> llvm-svn: 181987
* LoopGenerators: Construct loops such that they are already loop rotatedTobias Grosser2013-05-161-36/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | BeforeBB | v GuardBB / \ __ PreHeaderBB \ / \ / | latch HeaderBB | \ / \ / < \ / \ / ExitBB This does not only remove the need for an explicit loop rotate pass, but it also gives us the possibility to skip the construction of the guard condition in case the loop is known to be executed at least once. We do not yet exploit this, but by implementing this analysis in the isl code generator we should be able to remove more guards than the generic loop rotate pass can. Another point is that loop rotation can introduce additional PHI nodes, which may hide that a loop can be executed in parallel. This change avoids this complication and will make it easier to move the openmp code generation into a separate pass. llvm-svn: 181986
* Sort includesTobias Grosser2013-05-071-2/+1
| | | | llvm-svn: 181297
* Reformat with clang-formatTobias Grosser2013-05-071-11/+14
| | | | | | | clang-format become way more stable. This time we mainly reformat function signatures. llvm-svn: 181294
* Remove unnecessary explicit typing in std::make_pairAndy Gibbs2013-03-201-1/+1
| | | | llvm-svn: 177528
* CodeGen: clang-format goodnessTobias Grosser2013-02-051-58/+34
| | | | | | The changed files are not yet clang-format clean, but we are getting close. llvm-svn: 174403
* Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate toChandler Carruth2013-01-021-2/+2
| | | | | | reflect the migration in r171366. llvm-svn: 171370
* Formatting: Break lines after binary operators such as '&&'Tobias Grosser2012-12-291-2/+2
| | | | | | | | | | | | | | assert(Condition && "Text"); -> assert(Condition && "Text); This aligns Polly with the style used in LLVM. llvm-svn: 171242
* Fix obvious formatting problems.Tobias Grosser2012-12-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | We fix the following formatting problems found by clang-format: - 80 cols violations - Obvious problems with missing or too many spaces - multiple new lines in a row clang-format suggests many more changes, most of them falling in the following two categories: 1) clang-format does not at all format a piece of code nicely 2) The style that clang-format suggests does not match the style used in Polly/LLVM I consider differences caused by reason 1) bugs, which should be fixed by improving clang-format. Differences due to 2) need to be investigated closer to understand the cause of the difference and the solution that should be taken. llvm-svn: 171241
* Revert multiple adress space changes in PollyTobias Grosser2012-11-011-2/+1
| | | | llvm-svn: 167234
* Another fix for a build-bot reported API mismatch.Chandler Carruth2012-10-251-1/+2
| | | | llvm-svn: 166668
* isl-codegen: Support '<' and '>'Tobias Grosser2012-10-161-3/+5
| | | | | | | | Previously isl always generated '<=' or '>='. However, in many cases '<' or '>' leads to simpler code. This commit updates isl and adds the relevant code generation support to Polly. llvm-svn: 166020
* Move TargetData to DataLayout to fix build breakage caused by LLVM r16540Micah Villmow2012-10-081-2/+2
| | | | llvm-svn: 165408
* Mark the increments of the generated induction variables 'NSW'Tobias Grosser2012-05-291-1/+1
| | | | | | In general, all code that we produce is NSW. llvm-svn: 157606
* Refactor: Move the code generation related header files to ↵Hongbin Zheng2012-04-251-1/+1
| | | | | | include/polly/CodeGen. llvm-svn: 155547
* Refactor: Pass the argument 'IRBuilder' and 'AfterBlock' of function ↵Hongbin Zheng2012-04-231-16/+18
| | | | | | | | 'createLoop' by reference, so that we do not need to type an extra '&' operator when calling the function. llvm-svn: 155349
* Move the CodeGeneration.cpp to the CodeGen folder and update the build system.Hongbin Zheng2012-03-301-0/+335
Patched by Tsingray. llvm-svn: 153736
OpenPOWER on IntegriCloud