llvm-project
7d76a312 - [SLP]Improve analysis for the shl-based reduced values with copyables (#185485)

Commit
41 days ago
[SLP]Improve analysis for the shl-based reduced values with copyables (#185485) shl-based reduced values in many cases serve as a bitcast/bswap-based transfromation root, but need to improve analysis for better matching. This patch merges reduction candidates into a single reduced value array, if there are only 2 different candidate arrays, one of them has only single element, the second is a list of shl instructions. Also, sorts these shl instructions by their shift amount and merges with the single candidate, if it is profitable to have a copyable reduction.
Author
Parents
Loading