aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/XCOFFObjectFile.cpp
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2021-09-20 11:32:01 +0200
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2021-10-05 12:15:55 +0200
commit8ed0e6b2cf941aa29628acdf718e82618d60bfc0 (patch)
tree9c1438ef718082bf1c45dafad3646b0e9c3569ad /llvm/lib/Object/XCOFFObjectFile.cpp
parent1896fb2cfffcf120eb28cefb67ac3d56035adc43 (diff)
downloadllvm-8ed0e6b2cf941aa29628acdf718e82618d60bfc0.zip
llvm-8ed0e6b2cf941aa29628acdf718e82618d60bfc0.tar.gz
llvm-8ed0e6b2cf941aa29628acdf718e82618d60bfc0.tar.bz2
[SelectionDAG] Replace error prone index check in BaseIndexOffset::computeAliasing
Deriving NoAlias based on having the same index in two BaseIndexOffset expressions seemed weird (and as shown in the added unittest the correctness of doing so depended on undocumented pre-conditions that the user of BaseIndexOffset::computeAliasing would need to take care of. This patch removes the code that dereived NoAlias based on indices being the same. As a compensation, to avoid regressions/diffs in various lit test, we also add a new check. The new check derives NoAlias in case the two base pointers are based on two different GlobalValue:s (neither of them being a GlobalAlias). Reviewed By: niravd Differential Revision: https://reviews.llvm.org/D110256
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions