[PATCH] D12440: [BitcodeReader] Ensure we can read constant vector selects with an i1 condition
Karl Schimpf via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 12:53:21 PDT 2015
kschimpf added a subscriber: kschimpf.
================
Comment at: lib/Bitcode/Reader/BitcodeReader.cpp:2482
@@ +2481,3 @@
+ if (SelectorTy != V->getType())
+ SelectorTy = VectorType::get(Type::getInt1Ty(Context),
+ VTy->getNumElements());
----------------
Out of curiosity, why not use SelectorTy instead of Type::getInt1Ty(Context), since you have already computed it?
http://reviews.llvm.org/D12440
More information about the llvm-commits
mailing list