Make SelectionDAG::InferPtrAlignment use llvm::ComputeMaskedBits instead of duplicati...
authorEli Friedman <eli.friedman@gmail.com>
Mon, 28 Nov 2011 22:48:22 +0000 (22:48 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 28 Nov 2011 22:48:22 +0000 (22:48 +0000)
commitc4c2a024857ca92687728f573a3017091a79eaf4
treea6328e6ec96d88fb16388aba864d834bc5782b96
parented1c0c7f5817be939872b462be984534bd48bb9b
Make SelectionDAG::InferPtrAlignment use llvm::ComputeMaskedBits instead of duplicating the logic for globals.  Make llvm::ComputeMaskedBits handle GlobalVariables slightly more aggressively, to match what InferPtrAlignment knew how to do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145304 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/Transforms/InstCombine/constant-fold-gep.ll