]> granicus.if.org Git - llvm/commit
[CodeGen] Use APInt::setLowBits/setHighBits/setBitsFrom in more places
authorCraig Topper <craig.topper@gmail.com>
Wed, 15 Mar 2017 16:53:53 +0000 (16:53 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 15 Mar 2017 16:53:53 +0000 (16:53 +0000)
commit01c2f4124915a4711d3f55e7aee187dfb2cb968f
tree7f5702e4ccb7d7457f55d589719d24af50debedd
parent8aaf47200a5a6e1a7e83d019ee1e20320f9f9407
[CodeGen] Use APInt::setLowBits/setHighBits/setBitsFrom in more places

This patch replaces ORs with getHighBits/getLowBits etc. with setLowBits/setHighBits/setBitsFrom.

In a few of the places we weren't ORing, but the KnownZero/KnownOne vectors were already initialized to zero. We exploit this in most places already there were just some that were inconsistent.

Differential Revision: https://reviews.llvm.org/D30965

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp