[all-commits] [llvm/llvm-project] aca355: [InstCombine] Extend fold (icmp sgt smin(PosA, B) ...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Feb 10 05:28:40 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aca355a3bb9917b7e47cf7dc04ad7a96dfa0d43d
https://github.com/llvm/llvm-project/commit/aca355a3bb9917b7e47cf7dc04ad7a96dfa0d43d
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-02-10 (Thu, 10 Feb 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/min-positive.ll
Log Message:
-----------
[InstCombine] Extend fold (icmp sgt smin(PosA, B) 0) -> (icmp sgt B 0) to support smin intrinsic
Replace matchSelectPattern pattern match with the more general m_SMin so that it can handle smin intrinsics as well as the icmp+select pattern
Noticed while reviewing regressions from D98152
More information about the All-commits
mailing list