diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-12-16 19:11:56 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-12-16 19:11:56 +0000 |
commit | ea9f8ce03cfc6fd5cdc1fb242843378561ad3ed7 (patch) | |
tree | 283c88e897bda311f8a04b064d6b0c4bca1d1d53 /llvm/lib/CodeGen/VirtRegMap.cpp | |
parent | 089c699743614cc99340c694454b4333c44d0198 (diff) | |
download | bcm5719-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/VirtRegMap.cpp')
-rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |