diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-04-01 20:22:29 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-04-08 21:57:37 -0700 |
commit | 4c89bcadf6cae8320a1925eb9cbeb8c8c1f5f58b (patch) | |
tree | 719914f3de34b849bc63dfd9baccf6451c6cdc20 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 79cade52ed9406bd59936f51dc19f6f20f1fe352 (diff) | |
download | llvm-4c89bcadf6cae8320a1925eb9cbeb8c8c1f5f58b.zip llvm-4c89bcadf6cae8320a1925eb9cbeb8c8c1f5f58b.tar.gz llvm-4c89bcadf6cae8320a1925eb9cbeb8c8c1f5f58b.tar.bz2 |
[LICM] Hoist loads with invariant.group metadata
Previously loading the vtable used in calling a virtual method in a loop
was not hoisted out of the loop. This fixes that.
canSinkOrHoistInst() itself doesn't check that the load operands are
loop invariant, callers also check that separately.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D99784
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions