Handle extra output from index loads in cases where we wish to
forward a load value directly from a preceeding store.
Fixes PR39571.
Differential D54265
[DAGCombiner] Fix load-store forwarding of indexed loads. niravd on Nov 8 2018, 8:40 AM. Authored by
Details Handle extra output from index loads in cases where we wish to Fixes PR39571.
Diff Detail
Event TimelineComment Actions Thanks very much for the quick update. I can confirm that the original test file compiles successfully. I'll take a look at the change tomorrow (need to leave office). Comment Actions This is looking good. I've got one style nit that I'll leave to your discretion. I think it is probably worth tidying up the test case a little more though. I've made a proposal in the comment.
|
Taking up one of the comments from the original review for D49200. The use of auto could be considered a bit excessive here. https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable
For example use bool for IsSub, ISD::NodeType for Opc and SDValue for Idx. I don't have a strong opinion about this personally but it might be more consistent with the other code in the file.