Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Might be clearer as let isCommutable = 1/true in on each def? There aren't that many of them, so that keeps it self-documenting and avoids long argument lists.
Comment Actions
I've added an inline comment. Not sure if that's more acceptable or not. This way it keeps every instruction having the same number of lines so it's more regular than adding in extra let lines. I could be persuaded to add the let isCommutable if others feel strongly.
Comment Actions
Add MachineCSE test for ADD and ADDW. I can exhaustively test the other instructions if anyone thinks that's important.