================ ---------------- xlauko wrote:
No test here uses the switch to `adaptor.getSrc()`, since every cast operand comes straight from a cir.const. Maybe add a case where the operand is constant only through SCCP, e.g. an `int_to_bool` of a constant ternary’s result that feeds a second ternary. The old `getDefiningOp<ConstantOp>` code couldn’t fold that. https://github.com/llvm/llvm-project/pull/241645 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
