If a gather/scatter is masked and will need to be scalarized then the cost should be higher than we currently produce. An additional cost for scalarizing the mask, extracting i1s and branching on the result needs to be added, which I gave a cost of 5 in this patch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo