Changes in directory llvm/include/llvm/Support:
PatternMatch.h updated: 1.20 -> 1.21 --- Log message: m_not should match vector not --- Diffs of the changes: (+5 -1) PatternMatch.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletion(-) Index: llvm/include/llvm/Support/PatternMatch.h diff -u llvm/include/llvm/Support/PatternMatch.h:1.20 llvm/include/llvm/Support/PatternMatch.h:1.21 --- llvm/include/llvm/Support/PatternMatch.h:1.20 Fri Apr 13 13:12:09 2007 +++ llvm/include/llvm/Support/PatternMatch.h Fri Jun 15 01:13:47 2007 @@ -329,8 +329,12 @@ 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; } }; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits