Now, we will expand vecreduce_mul to several vector_shuffle and mul. But
it always computes with the whole vl which is not necessary. This patch
will use the active element as the vl to avoid redundant calculation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
I don't think this is the right way to do this. The issue is marked by this FIXME in LowerVECTOR_SHUFFLE
// If we are doing a SLIDEDOWN+SLIDEUP, reduce the VL for the SLIDEDOWN. // FIXME: If we are only doing a SLIDEDOWN, don't reduce the VL as it // causes multiple vsetvlis in some test cases such as lowering // reduce.mul