The test example from https://llvm.org/PR50256 (and reduced here) shows that we can match a load combine candidate even when there are no "or" instructions. We can avoid that by confirming that we do see an "or". This doesn't apply when matching an or-reduction because that match begins from the operands of the reduction.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo