diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-22 15:08:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-22 15:08:57 +0000 |
commit | d2d1ae105d34209682d794c367f1df1cb23711c5 (patch) | |
tree | 940f256bdfe3a69cf8ee0f56294046e10bdc6376 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | a46d66122ff571006ba7ce77ed5b5ad04b113c8a (diff) | |
download | bcm5719-llvm-d2d1ae105d34209682d794c367f1df1cb23711c5.tar.gz bcm5719-llvm-d2d1ae105d34209682d794c367f1df1cb23711c5.zip |
Use pre-increment instead of post-increment when the result is not used.
llvm-svn: 106542
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopSimplify.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index 1ef3c32ae58..74c9f778ef7 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp @@ -192,7 +192,7 @@ ReprocessLoop: if (!Preheader) { Preheader = InsertPreheaderForLoop(L); if (Preheader) { - NumInserted++; + ++NumInserted; Changed = true; } } @@ -215,7 +215,7 @@ ReprocessLoop: // allowed. if (!L->contains(*PI)) { if (RewriteLoopExitBlock(L, ExitBlock)) { - NumInserted++; + ++NumInserted; Changed = true; } break; @@ -244,7 +244,7 @@ ReprocessLoop: // loop header. LoopLatch = InsertUniqueBackedgeBlock(L, Preheader); if (LoopLatch) { - NumInserted++; + ++NumInserted; Changed = true; } } |