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:
parent
b2ad6dcaa3
commit
0c18639b63
@ -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
Block a user