From ea9f8ce03cfc6fd5cdc1fb242843378561ad3ed7 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 16 Dec 2016 19:11:56 +0000 Subject: Implement LaneBitmask::any(), use it to replace !none(), NFCI llvm-svn: 289974 --- llvm/lib/CodeGen/LiveRegMatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveRegMatrix.cpp') diff --git a/llvm/lib/CodeGen/LiveRegMatrix.cpp b/llvm/lib/CodeGen/LiveRegMatrix.cpp index 6de139dd66e..7a51386aa9c 100644 --- a/llvm/lib/CodeGen/LiveRegMatrix.cpp +++ b/llvm/lib/CodeGen/LiveRegMatrix.cpp @@ -79,7 +79,7 @@ static bool foreachUnit(const TargetRegisterInfo *TRI, unsigned Unit = (*Units).first; LaneBitmask Mask = (*Units).second; for (LiveInterval::SubRange &S : VRegInterval.subranges()) { - if (!(S.LaneMask & Mask).none()) { + if ((S.LaneMask & Mask).any()) { if (Func(Unit, S)) return true; break; -- cgit v1.2.3