Previously, these check routines accepted non-generatble instructions.
This time, I clean them and add assert for those non-generatable
instructions.
Details
- Reviewers
simoll k-ishizaka - Commits
- rG6fe610535f4e: [VE] Clean check routines of branch types
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
A helpful comment could explain why these instructions should not be used. Nits, else LGTM.
llvm/lib/Target/VE/VEInstrInfo.cpp | ||
---|---|---|
97 | typo alwasy | |
101 | I am lacking context here but is this really the right place for this assertion? Does "should not be used" mean that these instructions are invalid/incorrect or are they just not recommendable/inefficient? |
Thank you for reviewing.
llvm/lib/Target/VE/VEInstrInfo.cpp | ||
---|---|---|
97 | Thanks. | |
101 | Those instructions are not lowered here from LLVM-IR because we don't use such instructions in our lowering patterns. Those are acceptable by meaning of HW instructions but not acceptable by meaning of lowering consitency. And, writing all possible instruction here is definitely not a good idea. Therefore, I write "should not be used" as invalid. I'll write such comments in the souce. |
typo alwasy