[llvm] [InstCombine] Fold `select(load, val) + store` into `llvm.masked.store` (PR #144298)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 01:44:31 PDT 2025


dtcxzyw wrote:

> This is (extremely!) unprofitable for targets that don't have native masked stores. It will expect to a long chain of conditional stores.

Might be able to perform this fold in AggressiveInstCombine where `TTI.hasConditionalLoadStoreForType` is available.


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


More information about the llvm-commits mailing list