diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-09-30 13:57:55 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-10-04 14:14:25 -0700 |
commit | 7f28b4d5b7a5f3581dbdba0ee8936b519034ae65 (patch) | |
tree | 0548533ddb058dd92cd425539436404997481e9c /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 8480063f25b8527d935722769d54d47f0c0d5689 (diff) | |
download | llvm-7f28b4d5b7a5f3581dbdba0ee8936b519034ae65.zip llvm-7f28b4d5b7a5f3581dbdba0ee8936b519034ae65.tar.gz llvm-7f28b4d5b7a5f3581dbdba0ee8936b519034ae65.tar.bz2 |
[LICM] Bail if checking a global/constant for invariant.start
When we check if a load is loop invariant by finding a dominating
invariant.start call, we strip bitcasts until we get to an i8* Value,
and look for an invariant.start use of the i8* Value.
We may accidentally end up at an i8 global and look at a global's uses,
which we shouldn't do in a loop pass. Although we could make this
logic work with globals, that's not currently intended.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D111098
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions