[PATCH] D106376: [SVE] Add support for folding for select + masked loads

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 10:23:48 PDT 2021


efriedma added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:3221
 
+  // select(mask, mload(,,mask,0), 0) -> mload(,,mask,0)
+  if (match(FalseVal, m_Zero()) &&
----------------
Maybe worth noting here that you intentionally aren't checking the load has one use.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106376/new/

https://reviews.llvm.org/D106376



More information about the llvm-commits mailing list