diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-04-06 17:33:37 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-04-06 17:33:37 +0000 |
| commit | 2f1e1c351b7a6fe1db3f28cdf1a5a70464b9f97b (patch) | |
| tree | a1bcf3156e209b90c5bbd9e69b8de544386078fd /llvm/lib | |
| parent | 058abf1a4a45134988ea7b7ea0785c50a00d1bdf (diff) | |
| download | bcm5719-llvm-2f1e1c351b7a6fe1db3f28cdf1a5a70464b9f97b.tar.gz bcm5719-llvm-2f1e1c351b7a6fe1db3f28cdf1a5a70464b9f97b.zip | |
[InstSimplify] Teach SimplifyMulInst to recognize vectors of i1 as And. Not just scalar i1.
llvm-svn: 299665
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index 85fcbcccb2c..da0495c340b 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/lib/Analysis/InstructionSimplify.cpp @@ -930,7 +930,7 @@ static Value *SimplifyMulInst(Value *Op0, Value *Op1, const Query &Q, return X; // i1 mul -> and. - if (MaxRecurse && Op0->getType()->isIntegerTy(1)) + if (MaxRecurse && Op0->getType()->getScalarType()->isIntegerTy(1)) if (Value *V = SimplifyAndInst(Op0, Op1, Q, MaxRecurse-1)) return V; |

