[PATCH] D44063: [InstCombine] Don't blow up in foldICmpWithCastAndCast on vector icmp instructions.
Anna Thomas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 5 08:04:57 PST 2018
anna added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCompares.cpp:3411
// integer type is the same size as the pointer type.
+ const auto& CompatibleSizes = [&](Type* SrcTy, Type* DestTy) -> bool {
+ if (isa<VectorType>(SrcTy)) {
----------------
Instead of capturing everything, let's capture just `DL`.
Repository:
rL LLVM
https://reviews.llvm.org/D44063
More information about the llvm-commits
mailing list