aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-02-14 15:55:53 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-02-14 17:11:03 +0100
commit728803ed74e26b370600002dcffe4994ce3ec37a (patch)
treeffa54ef4aa5366155fb9b97f9dd67f94ba9ff926 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent428bc6feed088accf549296b77ecf544d54ff1c9 (diff)
downloadllvm-728803ed74e26b370600002dcffe4994ce3ec37a.zip
llvm-728803ed74e26b370600002dcffe4994ce3ec37a.tar.gz
llvm-728803ed74e26b370600002dcffe4994ce3ec37a.tar.bz2
[BasicAA] Use index difference to detect GEPs with identical indexes
We currently detect GEPs that have exactly the same indexes by comparing the Offsets and VarIndices. However, the latter implicitly performs equality comparisons between two values, which is not generally legal inside BasicAA, due to the possibility of comparisons across phi cycles. I believe that in this particular instance this actually ends up being unproblematic, at least I wasn't able to come up with any cases that could result in an incorrect root query result. In the interest of being defensive, compute GetIndexDifference earlier (which knows how to handle phi cycles properly) and use the result of that to determine whether the offsets are identical.
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions