summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveRegMatrix.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-12-16 19:11:56 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-12-16 19:11:56 +0000
commitea9f8ce03cfc6fd5cdc1fb242843378561ad3ed7 (patch)
tree283c88e897bda311f8a04b064d6b0c4bca1d1d53 /llvm/lib/CodeGen/LiveRegMatrix.cpp
parent089c699743614cc99340c694454b4333c44d0198 (diff)
downloadbcm5719-llvm-ea9f8ce03cfc6fd5cdc1fb242843378561ad3ed7.tar.gz
bcm5719-llvm-ea9f8ce03cfc6fd5cdc1fb242843378561ad3ed7.zip
Implement LaneBitmask::any(), use it to replace !none(), NFCI
llvm-svn: 289974
Diffstat (limited to 'llvm/lib/CodeGen/LiveRegMatrix.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveRegMatrix.cpp2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud