llvm-mirror/lib
Michael Zolotukhin 116f2abb18 Don't try to rotate a loop more than once - we never do this anyway.
Summary:
I can't find a case where we can rotate a loop more than once, and it looks
like we never do this. To rotate a loop following conditions should be met:
1) its header should be exiting
2) its latch shouldn't be exiting

But after the first rotation the header becomes the new latch, so this
condition can never be true any longer.

Tested on with an assert on LNT testsuite and make check.

Reviewers: hfinkel, sanjoy

Subscribers: sebpop, sanjoy, llvm-commits, mzolotukhin

Differential Revision: http://reviews.llvm.org/D20181

llvm-svn: 272439
2016-06-10 22:03:56 +00:00
..
Analysis Interprocedural Register Allocation (IPRA) Analysis 2016-06-10 16:19:46 +00:00
AsmParser [DebugInfo] Add calling convention support for DWARF and CodeView 2016-06-08 20:34:29 +00:00
Bitcode BitcodeReader: Use std:::piecewise_construct when upgrading type refs 2016-06-09 20:46:33 +00:00
CodeGen [IRTranslator] Support the translation of or. 2016-06-10 20:50:35 +00:00
DebugInfo [pdb] Fix issues with pdb writing. 2016-06-10 21:47:26 +00:00
ExecutionEngine Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
Fuzzer [LibFuzzer] Fix some unit test crashes on OSX. 2016-06-10 05:33:07 +00:00
IR [STLExtras] Introduce and use llvm::count_if; NFC 2016-06-10 21:18:39 +00:00
IRReader
LibDriver
LineEditor
Linker Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
LTO Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
MC Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
Object [Symbolize] Check if the PE file has a PDB and emit an error if we can't load it 2016-06-03 20:25:09 +00:00
ObjectYAML [obj2yaml] [yaml2obj] Support for MachO nlist and string table 2016-06-02 22:54:06 +00:00
Option
Passes [PM] Port LCSSA to the new PM. 2016-06-09 19:44:46 +00:00
ProfileData Bug fix remove another illegal char from prof symbol name 2016-06-10 06:32:26 +00:00
Support [STLExtras] Introduce and use llvm::count_if; NFC 2016-06-10 21:18:39 +00:00
TableGen Avoid copies of std::strings and APInt/APFloats where we only read from it 2016-06-08 10:01:20 +00:00
Target [STLExtras] Introduce and use llvm::count_if; NFC 2016-06-10 21:18:39 +00:00
Transforms Don't try to rotate a loop more than once - we never do this anyway. 2016-06-10 22:03:56 +00:00
CMakeLists.txt
LLVMBuild.txt