1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[MachineLICM] Fix wrong and confusing comment. NFC.

This commit is contained in:
Sjoerd Meijer 2021-01-29 13:32:56 +00:00
parent b2ad6dcaa3
commit 0c18639b63

View File

@ -964,11 +964,11 @@ bool MachineLICMBase::IsLICMCandidate(MachineInstr &I) {
return false; return false;
} }
// If it is load then check if it is guaranteed to execute by making sure that // If it is a load then check if it is guaranteed to execute by making sure
// it dominates all exiting blocks. If it doesn't, then there is a path out of // that it dominates all exiting blocks. If it doesn't, then there is a path
// the loop which does not execute this load, so we can't hoist it. Loads // out of the loop which does not execute this load, so we can't hoist it.
// from constant memory are not safe to speculate all the time, for example // Loads from constant memory are safe to speculate, for example indexed load
// indexed load from a jump table. // from a jump table.
// Stores and side effects are already checked by isSafeToMove. // Stores and side effects are already checked by isSafeToMove.
if (I.mayLoad() && !mayLoadFromGOTOrConstantPool(I) && if (I.mayLoad() && !mayLoadFromGOTOrConstantPool(I) &&
!IsGuaranteedToExecute(I.getParent())) { !IsGuaranteedToExecute(I.getParent())) {