[llvm] [DAG] foldABSToABD - support abs(*ext(x) - *ext(y)) -> zext(abd*(x, y)) from different extension source types (PR #71670)

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 8 09:45:09 PST 2023


davemgreen wrote:

Would this replace a `abs+sub+sext+sext` with an `zext+abd+sext`? (Where we know the abd is legal. Would it make sense to do that even if the trunc was not free?

https://github.com/llvm/llvm-project/pull/71670


More information about the llvm-commits mailing list