forked from OSchip/llvm-project
[MachineLICM] Fix wrong and confusing comment. NFC.
This commit is contained in:
parent
229c1cff51
commit
f03f3a8474
|
@ -964,11 +964,11 @@ bool MachineLICMBase::IsLICMCandidate(MachineInstr &I) {
|
|||
return false;
|
||||
}
|
||||
|
||||
// If it is load then check if it is guaranteed to execute by making sure that
|
||||
// it dominates all exiting blocks. If it doesn't, then there is a path out of
|
||||
// the loop which does not execute this load, so we can't hoist it. Loads
|
||||
// from constant memory are not safe to speculate all the time, for example
|
||||
// indexed load from a jump table.
|
||||
// If it is a load then check if it is guaranteed to execute by making sure
|
||||
// that it dominates all exiting blocks. If it doesn't, then there is a path
|
||||
// out of the loop which does not execute this load, so we can't hoist it.
|
||||
// Loads from constant memory are safe to speculate, for example indexed load
|
||||
// from a jump table.
|
||||
// Stores and side effects are already checked by isSafeToMove.
|
||||
if (I.mayLoad() && !mayLoadFromGOTOrConstantPool(I) &&
|
||||
!IsGuaranteedToExecute(I.getParent())) {
|
||||
|
|
Loading…
Reference in New Issue