aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-09-30 13:57:55 -0700
committerArthur Eubanks <aeubanks@google.com>2021-10-04 14:14:25 -0700
commit7f28b4d5b7a5f3581dbdba0ee8936b519034ae65 (patch)
tree0548533ddb058dd92cd425539436404997481e9c /llvm/lib/CodeGen/MachineFunction.cpp
parent8480063f25b8527d935722769d54d47f0c0d5689 (diff)
downloadllvm-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