diff options
author | Eric Christopher <echristo@gmail.com> | 2016-03-15 03:01:31 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2016-03-15 03:01:31 +0000 |
commit | 257338ff0fa2c12f9c67df0e5c9d4492ad72e40a (patch) | |
tree | 6c2e40bbf837043cf99d41604f3b64d9873c6bd1 /llvm | |
parent | 2794f715751bbda2ca00c146a4867a8a1d7c0f0e (diff) | |
download | bcm5719-llvm-257338ff0fa2c12f9c67df0e5c9d4492ad72e40a.tar.gz bcm5719-llvm-257338ff0fa2c12f9c67df0e5c9d4492ad72e40a.zip |
Use some braces to format this a little better.
llvm-svn: 263527
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnroll.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp index 505e4525696..84600985a0b 100644 --- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp @@ -275,15 +275,19 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, // Loops containing convergent instructions must have a count that divides // their TripMultiple. - DEBUG(bool HasConvergent = false; + DEBUG( + { + bool HasConvergent = false; for (auto &BB - : L->blocks()) for (auto &I - : *BB) if (auto CS = CallSite(&I)) - HasConvergent |= CS.isConvergent(); + : 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.");); + "operation."); + }); // Don't output the runtime loop prolog if Count is a multiple of // TripMultiple. Such a prolog is never needed, and is unsafe if the loop // contains a convergent instruction. |