mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 22:43:53 +00:00
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. llvm-svn: 159331
This commit is contained in:
parent
89ff4e2b47
commit
cba878c2f4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user