[PATCH] D84948: [InstCombine] Fold select/and/or with freeze(undef) that is used in the op only

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 13:20:46 PDT 2020


nikic added a comment.

Just as another possibility, we could simply always fold `freeze undef` to `zeroinitializer` in InstCombine (regardless of number of uses). This is not always the optimal fold, but usually a good one. At least at this point, I don't think `freeze undef` is expected to be common and it's more important to get rid of the freeze than find the best replacement.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84948



More information about the llvm-commits mailing list