[llvm] [DAGCombine][AArch64][X86] Adjust profitability check on and(anyext, c) -> zext(and) transform (PR #214749)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 02:07:21 PDT 2026


https://github.com/RKSimon commented:

isTruncateFree can be dropped of course, and the x86 changes look ok.

The isVector change in general worries me - limit this to !LegalOperations maybe? We've had problems in visitTRUNCATE with vector binops in the past.

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


More information about the llvm-commits mailing list