[llvm] [X86][ISel] Improve logic for optimizing `movmsk(bitcast(shuffle(x)))` (PR #68369)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 8 02:13:40 PDT 2023


RKSimon wrote:

Have you any cases where all of this is necessary vs my smaller patch? This code was to handle a uncommon edge case in the first place (a movmsk variant of reduce(permute(x)) -> reduce(x)), and we're adding a lot of code to handle it. Ideally the SimplifyDemanded* calls will have simplified the shuffle anyhow if we're only demanding the sign bits .

https://github.com/llvm/llvm-project/pull/68369


More information about the llvm-commits mailing list