This function is used to reduce multiple check about whether a
vector_shuffle is from a same and contiguous source.
Details
- Reviewers
- craig.topper - reames - frasercrmck 
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 2734 | I kind of think a function starting with is should return a bool. Maybe getSingleShuffleSource? | |
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 2768 | Should isVnsrlShuffle return the SDValue returned from isOneSourceVECTOR_SHUFFLE? Looks like the caller makes an assumption about how to find the source. | |
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 2768 | 
 Does that mean isVnsrlShuffle should be renamed to something like getVnsrlShuffle? | |
I kind of think a function starting with is should return a bool. Maybe getSingleShuffleSource?