Test by Robert Lougher!
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Minor comments on the code.
Please fold these tests into the existing 256-bit vector shuffle tests and use the same style of file check assertions.
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
7900 ↗ | (On Diff #14778) | for (;;) { is my preferred spelling of an loop without a condition. |
7901 ↗ | (On Diff #14778) | Switch on the opcode rather than an if chain. It makes it much more clear what is going on if we extend this later. Using continue makes it easy to handle the "double break" issue. |
7908 ↗ | (On Diff #14778) | dyn_cast, and break if null. that way we only go through the cast machinery once. |
7913 ↗ | (On Diff #14778) | I would probably precompute some part of the upper bound into a variable to make the bounds test a bit easier to read. |