mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[NFC][LoopUnrollAndJam] clang-format.
I am currently working on this file.
This commit is contained in:
parent
987e9d3a05
commit
797eaf4fbd
@ -438,11 +438,11 @@ static bool tryToUnrollAndJamLoop(Function &F, DominatorTree &DT, LoopInfo &LI,
|
|||||||
int OptLevel) {
|
int OptLevel) {
|
||||||
bool DidSomething = false;
|
bool DidSomething = false;
|
||||||
|
|
||||||
// The loop unroll and jam pass requires loops to be in simplified form, and also needs LCSSA.
|
// The loop unroll and jam pass requires loops to be in simplified form, and
|
||||||
// Since simplification may add new inner loops, it has to run before the
|
// also needs LCSSA. Since simplification may add new inner loops, it has to
|
||||||
// legality and profitability checks. This means running the loop unroll and jam pass
|
// run before the legality and profitability checks. This means running the
|
||||||
// will simplify all loops, regardless of whether anything end up being
|
// loop unroll and jam pass will simplify all loops, regardless of whether
|
||||||
// unroll and jammed.
|
// anything end up being unroll and jammed.
|
||||||
for (auto &L : LI) {
|
for (auto &L : LI) {
|
||||||
DidSomething |=
|
DidSomething |=
|
||||||
simplifyLoop(L, &DT, &LI, &SE, &AC, nullptr, false /* PreserveLCSSA */);
|
simplifyLoop(L, &DT, &LI, &SE, &AC, nullptr, false /* PreserveLCSSA */);
|
||||||
|
Loading…
Reference in New Issue
Block a user