To check reassociation correctness for RISCV, we must ensure that the root and
it's sibling have equal rounding modes (for floating point instructions).
hasReassociableSibling is a good place to make additional target-dependend
checks.
This patch allows us to enable default machine combiner mechanism to gather
reassociation candidates on RISCV.
Currently, hasEqualFRM returns false even if both instructions don't have FRM at all. So, to add integer instructions reassociation we:
I'd like to ask reviewers which way is better to follow? I'd prefer the second option.
The question is not about this review, but I'm trying to think a few steps ahead.