Remove a useless check in BBVectorize.

A shuffle mask will always be a constant, but I did not realize that
when I originally wrote the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hal Finkel 2012-06-28 05:42:43 +00:00
parent 64e1b28643
commit a9ad9f64d5

View File

@ -747,11 +747,6 @@ namespace {
} else {
return false;
}
} else if (isa<ShuffleVectorInst>(I)) {
// Only merge two shuffles if they're both constant
return isa<Constant>(I->getOperand(2)) &&
isa<Constant>(J->getOperand(2));
// FIXME: We may want to vectorize non-constant shuffles also.
}
// The powi intrinsic is special because only the first argument is