aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2020-10-20 14:43:25 -0700
committerQuentin Colombet <qcolombet@apple.com>2020-10-21 15:07:04 -0700
commitee6abef5323d59b983129bf3514ef6775d1d6cd5 (patch)
tree1015b4f90f192f16ecd1437372b34dfba53bedd9 /llvm/lib/CodeGen/StackProtector.cpp
parente97e9851b227e98e39c27c4c8f5558e331cde8b4 (diff)
downloadllvm-ee6abef5323d59b983129bf3514ef6775d1d6cd5.zip
llvm-ee6abef5323d59b983129bf3514ef6775d1d6cd5.tar.gz
llvm-ee6abef5323d59b983129bf3514ef6775d1d6cd5.tar.bz2
[ValueTracking] Interpret GEPs as a series of adds multiplied by the related scaling factor
Prior to this patch, computeKnownBits would only try to deduce trailing zeros bits for getelementptrs. This patch adds the logic to treat geps as a series of add * scaling factor. Thanks to this patch, using a gep or performing an address computation directly "by hand" (ptrtoint followed by adds and mul followed by inttoptr) offers the same computeKnownBits information. Previously, the "by hand" approach would have given more information. This is related to https://llvm.org/PR47241. Differential Revision: https://reviews.llvm.org/D86364
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions