aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2020-01-29 20:33:35 -0800
committerCraig Topper <craig.topper@gmail.com>2020-01-29 21:32:16 -0800
commit1ef8e8b41429a1c2440ddbbcb1fc19ba1e8fcc57 (patch)
tree021ffbb0e6dc2a88321c662a1d87debe74ba126e /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parent3e24242a7dc99ef04676cc7e227bd3652e80c975 (diff)
downloadllvm-1ef8e8b41429a1c2440ddbbcb1fc19ba1e8fcc57.zip
llvm-1ef8e8b41429a1c2440ddbbcb1fc19ba1e8fcc57.tar.gz
llvm-1ef8e8b41429a1c2440ddbbcb1fc19ba1e8fcc57.tar.bz2
[X86] Don't exit from foldOffsetIntoAddress if the Offset is 0, but AM.Disp is non-zero.
This is an alternate fix for the issue D73606 was trying to solve. The main issue here is that we bailed out of foldOffsetIntoAddress if Offset is 0. But if we just found a symbolic displacement and AM.Disp became non-zero earlier, we still need to validate that AM.Disp with the symbolic displacement. This passes fold-add-pcrel.ll. Differential Revision: https://reviews.llvm.org/D73608
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions