This support promotion for vp.bitreverse/bswap/ctlz/ctlz_zero_undef/cttz/cttz_zero_undef/ctpop/fshr/fshl.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM. As a side note, there's a lot of duplication between the VP and non-VP nodes here. I wonder if it's time to introduce some sort of helper/abstraction for it
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | ||
---|---|---|
536 | Nit: Should we use EVL instead of VL since it's more VP specific? |
Comment Actions
As a side note, there's a lot of duplication between the VP and non-VP nodes here. I wonder if it's time to introduce some sort of helper/abstraction for it.
I agree we may try to introduce MatchContext in DAGCombiner or similar patterns to here now.
Nit: Should we use EVL instead of VL since it's more VP specific?