In buildSchedGraph(), when adding memory dependencies for loads, move
the call to adjustChainDeps() after the call to
addChainDependency(AliasChain) to handle the case where
addChainDependency(AliasChain) ends up not adding a dependency and
instead putting the SU on the RejectMemNodes list. The call to
adjustChainDeps() must be done after the call to addChainDependency() in
order to process the SU added to the RejectMemNodes list to create
memory dependencies for it.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with my suggestion for a comment.
lib/CodeGen/ScheduleDAGInstrs.cpp | ||
---|---|---|
1140 | I would be nice to add a short comment explaining why addChainDependency and adjustChainDeps need to be called in this order. |
I would be nice to add a short comment explaining why addChainDependency and adjustChainDeps need to be called in this order.