Micro-optimization: don't shift an entire bitcode record over to get the code.
authorJordan Rose <jordan_rose@apple.com>
Fri, 10 May 2013 22:17:10 +0000 (22:17 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 10 May 2013 22:17:10 +0000 (22:17 +0000)
commit1197e38f3338b8db76f0fa38c2687c65b2bcea5c
treec0c7c69d3fd4ba83bcad2419fee1c49fa6b31a83
parentacd1d031b84e76f6fbb35601b337359cab436022
Micro-optimization: don't shift an entire bitcode record over to get the code.

Previously, BitstreamCursor read an abbreviated record by splatting the
whole thing into a data vector, then extracting and removing the /first/
element. Now, it reads the first element--the record code--separately from
the actual field values.

No (intended) functionality change.

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