[PATCH] D91589: [DAGCombiner] Fold (sext (not i1 x)) -> (add (zext i1 x), -1)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 19 02:02:23 PST 2020
RKSimon added reviewers: efriedma, nemanjai.
RKSimon added inline comments.
================
Comment at: llvm/test/CodeGen/RISCV/sext-zext-trunc.ll:477
-;; TODO: fold (sext (not (setcc a, b, cc))) -> (sext (setcc a, b, !cc))
+;; fold (sext (not (setcc a, b, cc))) -> (sext (setcc a, b, !cc))
define i32 @sext_of_not_cmp_i32(i32 %x) {
----------------
Not sure what comment should be here if RISCV doesn't actually do the fold
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91589/new/
https://reviews.llvm.org/D91589
More information about the llvm-commits
mailing list