forked from OSchip/llvm-project
parent
661beccdd9
commit
7954a221f3
|
@ -410,12 +410,12 @@ public:
|
||||||
if (!LI)
|
if (!LI)
|
||||||
return FD_NotApplicable;
|
return FD_NotApplicable;
|
||||||
|
|
||||||
// If the load is already in the statement, not forwarding is necessary.
|
// If the load is already in the statement, no forwarding is necessary.
|
||||||
// However, it might happen that the LoadInst is already present in the
|
// However, it might happen that the LoadInst is already present in the
|
||||||
// statement's instruction list. In that case we do as follows:
|
// statement's instruction list. In that case we do as follows:
|
||||||
// - For the evaluation (DoIt==false), we can trivially forward it as it is
|
// - For the evaluation (DoIt==false), we can trivially forward it as it is
|
||||||
// benefit of forwarding an already present instruction.
|
// benefit of forwarding an already present instruction.
|
||||||
// - For the execution (DoIt==false), prepend the instruction (to make it
|
// - For the execution (DoIt==true), prepend the instruction (to make it
|
||||||
// available to all instructions following in the instruction list), but
|
// available to all instructions following in the instruction list), but
|
||||||
// do not add another MemoryAccess.
|
// do not add another MemoryAccess.
|
||||||
MemoryAccess *Access = TargetStmt->getArrayAccessOrNULLFor(LI);
|
MemoryAccess *Access = TargetStmt->getArrayAccessOrNULLFor(LI);
|
||||||
|
|
Loading…
Reference in New Issue