[PATCH] D69244: [InstCombine] Extra combine for uadd_sat
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 03:40:08 PDT 2019
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:785-787
+ if (match(Cmp0, m_c_Add(m_Value(X), m_Value(Y))) &&
+ (X == Cmp1 || Y == Cmp1) &&
+ match(FVal, m_c_Add(m_Specific(X), m_Specific(Y)))) {
----------------
Maybe
```
if (match(Cmp0, m_c_Add(m_Specific(Cmp1), m_Value(Y))) &&
match(FVal, m_c_Add(m_Specific(Cmp1), m_Specific(Y)))) {
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69244/new/
https://reviews.llvm.org/D69244
More information about the llvm-commits
mailing list