[llvm] [InstCombine] Remove redundant fptrunc of select fold (NFCI) (PR #117182)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 25 02:11:25 PST 2024
nikic wrote:
@dtcxzyw Done in https://github.com/llvm/llvm-project/commit/f81f47e3ff29598fdf58cde94ccf2c7d4be53df5.
This case is doubly-blocked, first by https://github.com/llvm/llvm-project/blob/f81f47e3ff29598fdf58cde94ccf2c7d4be53df5/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp#L176-L184 which checks for a comparison with same types and then https://github.com/llvm/llvm-project/blob/f81f47e3ff29598fdf58cde94ccf2c7d4be53df5/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp#L1696-L1709 blocks specifically the min/max pattern.
https://github.com/llvm/llvm-project/pull/117182
More information about the llvm-commits
mailing list