mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Minor formatting fixes in LoopUnroll.cpp.
llvm-svn: 268995
This commit is contained in:
parent
e9c3e87ae5
commit
e84867be95
@ -284,15 +284,13 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
|
||||
DEBUG(
|
||||
{
|
||||
bool HasConvergent = false;
|
||||
for (auto &BB
|
||||
: L->blocks())
|
||||
for (auto &BB : L->blocks())
|
||||
for (auto &I : *BB)
|
||||
if (auto CS = CallSite(&I))
|
||||
HasConvergent |= CS.isConvergent();
|
||||
assert((!HasConvergent || TripMultiple % Count == 0) &&
|
||||
"Unroll count must divide trip multiple if loop contains a "
|
||||
"convergent "
|
||||
"operation.");
|
||||
"convergent operation.");
|
||||
});
|
||||
// Don't output the runtime loop remainder if Count is a multiple of
|
||||
// TripMultiple. Such a remainder is never needed, and is unsafe if the loop
|
||||
|
Loading…
Reference in New Issue
Block a user