[PATCH] D153148: [InstCombine] Fold `(-1 + A) & B` into `A ? 0 : B` where A is effectively a bool
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 25 03:33:17 PDT 2023
nikic added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/binop-cast.ll:302
; Negative test of and_add_bool_to_select
define i32 @and_add_bool_no_fold(i32 %y) {
----------------
This isn't a negative test?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153148/new/
https://reviews.llvm.org/D153148
More information about the llvm-commits
mailing list