RKSimon added inline comments. ================ Comment at: lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:3634 return PromoteTargetBoolean(CC, N->getValueType(0)); } ---------------- Replace other uses of N->getValueType(0) with VT. https://reviews.llvm.org/D41560