[PATCH] D151631: [InstSimplify] Simplify select i1 ConstExpr, i1 true, i1 false to ConstExpr

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 28 09:01:12 PDT 2023


nikic added inline comments.


================
Comment at: llvm/test/Transforms/InstSimplify/select.ll:892
 
 ; Negative tests. Don't fold if the non-undef operand is a constexpr.
 define i32 @all_constant_false_undef_true_constexpr() {
----------------
Outdated comment. We should also have a test where the constant expression is poison-generating.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151631



More information about the llvm-commits mailing list