[clang] [llvm] [InstCombine] fold float clamp pattern into llvm.max/min (PR #159652)

Vedant Paranjape via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 16:37:51 PDT 2025


VedantParanjape wrote:

> Can you refine
> 
> https://github.com/llvm/llvm-project/blob/24b03d3217e41536cee7c868860b5930160ad526/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp#L4171-L4196
> to handle this fold? As for the denormal flushing problem, we can check if the denormal mode of current function is `ieee`.

ack

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


More information about the llvm-commits mailing list