[Float2Int] Don't operate on vector instructions
[oota-llvm.git] / lib / Transforms / Scalar / Float2Int.cpp
index a9a4a24f8e933cf4d0c36721471ada25937de539..7f5d78656b50bb85f2187f7befd6a1a00316be0e 100644 (file)
@@ -131,6 +131,8 @@ static Instruction::BinaryOps mapBinOpcode(unsigned Opcode) {
 // integer domain.
 void Float2Int::findRoots(Function &F, SmallPtrSet<Instruction*,8> &Roots) {
   for (auto &I : instructions(F)) {
+    if (isa<VectorType>(I.getType()))
+      continue;
     switch (I.getOpcode()) {
     default: break;
     case Instruction::FPToUI: