aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-15 06:13:47 +0000
committerChris Lattner <sabre@nondot.org>2007-06-15 06:13:47 +0000
commitb0760c80b3994d41fcf350b7cd33a9a8f07338f9 (patch)
tree7f5740b493638c91c51d484261bb29ee146d9feb /include
parentcef4b53a3e7b5e7f14760f716949d80055f36510 (diff)
downloadexternal_llvm-b0760c80b3994d41fcf350b7cd33a9a8f07338f9.zip
external_llvm-b0760c80b3994d41fcf350b7cd33a9a8f07338f9.tar.gz
external_llvm-b0760c80b3994d41fcf350b7cd33a9a8f07338f9.tar.bz2
m_not should match vector not
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/PatternMatch.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h
index d8099a9..6b295d6 100644
--- a/include/llvm/Support/PatternMatch.h
+++ b/include/llvm/Support/PatternMatch.h
@@ -329,8 +329,12 @@ private:
bool matchIfNot(Value *LHS, Value *RHS) {
if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS))
return CI->isAllOnesValue() && L.match(LHS);
- else if (ConstantInt *CI = dyn_cast<ConstantInt>(LHS))
+ if (ConstantInt *CI = dyn_cast<ConstantInt>(LHS))
return CI->isAllOnesValue() && L.match(RHS);
+ if (ConstantVector *CV = dyn_cast<ConstantVector>(RHS))
+ return CV->isAllOnesValue() && L.match(LHS);
+ if (ConstantVector *CV = dyn_cast<ConstantVector>(LHS))
+ return CV->isAllOnesValue() && L.match(RHS);
return false;
}
};