Extract the functionality to combine OR to BFI into its own function.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
10402 | You're now returning N in an SDValue and that gets returned from PerformORCombine, so now we will be adding the new nodes to the DAG combiner worklist. Is this intentional? Either way something needs to be adjusted here (and in the other places where this comment occurs). | |
10557–10559 | It would be better to do this in PerformORCombineToBFI (in general less preconditions is better). |
lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
10402 | Yes, returning an SDValue of the original SDNode tells the combiner than N is now dead. I will update the comment. | |
10557–10559 | Ah yes, cheers. |
You're now returning N in an SDValue and that gets returned from PerformORCombine, so now we will be adding the new nodes to the DAG combiner worklist. Is this intentional? Either way something needs to be adjusted here (and in the other places where this comment occurs).