Move this combine from x86 into generic DAGCombine, which currently only manages cases where the bitcast is between types of the same scalarsize.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
18266 ↗ | (On Diff #190009) | Should use getVectorIdxTy? |
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
18353 ↗ | (On Diff #190902) | Can things like insert_subvector x:v7i8, (bitcast y:v2i16 to v4i8), 2 occur? Do we need to check NumElts % Scale == 0 here as well? |
Comment Actions
Reverse ping. Apart from the previous comment this looks good, and I saw you already added some tests for that as well :)