[llvm] r221891 - Small optimization: once the size is know, we don't have to call fillCurWord.
Rafael Espindola
rafael.espindola at gmail.com
Thu Nov 13 06:37:51 PST 2014
Author: rafael
Date: Thu Nov 13 08:37:51 2014
New Revision: 221891
URL: http://llvm.org/viewvc/llvm-project?rev=221891&view=rev
Log:
Small optimization: once the size is know, we don't have to call fillCurWord.
Modified:
llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamReader.h?rev=221891&r1=221890&r2=221891&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitstreamReader.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Thu Nov 13 08:37:51 2014
@@ -227,8 +227,8 @@ public:
bool AtEndOfStream() {
if (BitsInCurWord != 0)
return false;
- if (Size != 0 && Size == NextChar)
- return true;
+ if (Size != 0)
+ return Size == NextChar;
fillCurWord();
return BitsInCurWord == 0;
}
More information about the llvm-commits
mailing list