[llvm] [DAGCombiner] Freeze maybe poison operands when folding select to logic (PR #84924)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 07:43:42 PDT 2024
================
@@ -295,22 +295,28 @@ define float @select_icmp_sle(i32 %x, i32 %y, float %a, float %b) {
; Test peephole optimizations for select.
define zeroext i1 @select_opt1(i1 zeroext %c, i1 zeroext %a) {
; CHECK-LABEL: select_opt1
----------------
RKSimon wrote:
I have wondered whether SelectionDAGBuilder should be inserting freeze to incoming nodes if we know they aren't undef/poison - that would allow freeze(assertzext(x)) or whatever?
https://github.com/llvm/llvm-project/pull/84924
More information about the llvm-commits
mailing list