Remove the IsStreamed member variable.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 22 Jun 2015 18:06:15 +0000 (18:06 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 22 Jun 2015 18:06:15 +0000 (18:06 +0000)
commit21a540abc4167a522b8aee931210410d3546056f
treea7841378cd24d0f191f6dcbff7d57f67eb6d378b
parente0ef46e5e7b53c46d6d3954110d4dbc28aaf5246
Remove the IsStreamed member variable.

Having different code paths for streamed and regular bitcode reading was a
source of bugs in the past and this defines them away.

It has a small but noticeable impact on performance. I timed running
"opt -disable-output -disable-verify" on a ltoed clang. It goes from

14.752845231 seconds time elapsed   ( +-  0.16% )

to

15.012463721 seconds time elapsed   ( +-  0.11% )

Extracted from a patch by Karl Schimpf.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240305 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp