This patch fixes an issue where RISCV's findCommutedOpIndices would
incorrectly return the pseudo CommuteAnyOperandIndex as a commutable
operand index, rather than fixing a specific index.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I'm not super familiar with this mechanism. But reading the docs I think this is correct.
Also, strictly logically, that else if was trivially true (due to an earlier assignment) which was not probably the intent of the code.
Good catch @frasercrmck!
Comment Actions
Hey, sorry, I was on holiday and should have been more proactive about this before I left. I see you've taken this on in 51593 - thanks!