aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-27 15:15:47 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-27 15:15:47 +0100
commitb981bc30bf1a21c753a07bbb6f4e40140cdec3c4 (patch)
treee68ae9de88aaddb771844e46580aed351e050376 /llvm/utils
parent60f3e8fbe44f12ea28760c2771f8bf48dc08abe8 (diff)
downloadllvm-b981bc30bf1a21c753a07bbb6f4e40140cdec3c4.zip
llvm-b981bc30bf1a21c753a07bbb6f4e40140cdec3c4.tar.gz
llvm-b981bc30bf1a21c753a07bbb6f4e40140cdec3c4.tar.bz2
[BasicAA] Correct handle implicit sext in decomposition
While explicit sext instructions were handled correctly, the implicit sext that occurs if the offset is smaller than the pointer size blindly assumed that sext(X * Scale + Offset) is the same as sext(X) * Scale + Offset, which is obviously not correct. Fix this by extracting the code that handles linear expression extension and reusing it for the implicit sext as well.
Diffstat (limited to 'llvm/utils')
0 files changed, 0 insertions, 0 deletions