[PATCH] D147299: [InstCombine] Add support for maximum(a,b) + minimum(a,b) => a + b
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 23:54:40 PDT 2023
mkazantsev added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/fadd-maximum-minimum.ll:14
-; CHECK-NEXT: [[MAX:%.*]] = call float @llvm.maximum.f32(float [[A]], float [[B]])
-; CHECK-NEXT: [[RES:%.*]] = fadd float [[MIN]], [[MAX]]
; CHECK-NEXT: ret float [[RES]]
----------------
Add test on (MAX + MIN)?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147299/new/
https://reviews.llvm.org/D147299
More information about the llvm-commits
mailing list