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/VirtRegMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp') diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index c181bc09e2c..0d506d64665 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -342,7 +342,7 @@ bool VirtRegRewriter::readsUndefSubreg(const MachineOperand &MO) const { LaneBitmask UseMask = TRI->getSubRegIndexLaneMask(SubRegIdx); // See if any of the relevant subregister liveranges is defined at this point. for (const LiveInterval::SubRange &SR : LI.subranges()) { - if (!(SR.LaneMask & UseMask).none() && SR.liveAt(BaseIndex)) + if ((SR.LaneMask & UseMask).any() && SR.liveAt(BaseIndex)) return false; } return true; -- cgit v1.2.3