aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2018-06-21 08:30:07 +0000
committerDavid Green <david.green@arm.com>2018-06-21 08:30:07 +0000
commita465188500672de18918b8c5c36366622429a5ce (patch)
tree4f9ccfefc82e390c88ccfefebfaa7229f1aaea91 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parentaefd73e1b51d11ec92b0ccb69c5cfc8b8d782799 (diff)
downloadllvm-a465188500672de18918b8c5c36366622429a5ce.zip
llvm-a465188500672de18918b8c5c36366622429a5ce.tar.gz
llvm-a465188500672de18918b8c5c36366622429a5ce.tar.bz2
[DAGCombine] Fix alignment for offset loads/stores
The alignment parameter to getExtLoad is treated as a base alignment, not the alignment of the load (base + offset). When we infer a better alignment for a Ptr we need to ensure that it applies to the base to prevent the alignment on the load from being wrong. This fixes a bug where the alignment could then be used to incorrectly prove noalias between a load and a store, leading to a miscompile. Differential Revision: https://reviews.llvm.org/D48029 llvm-svn: 335210
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions