[PATCH] D145223: [InstCombine] Combine binary operator of two phi node

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 3 01:35:07 PST 2023


xbolva00 added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:1324
+                   return false;
+                 if (match(Phi0Use.get(), m_Zero()))
+                   NewIncomingValues.push_back(Phi1Use.get());
----------------
call InstSimplify instead of matching this specific pattern?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145223/new/

https://reviews.llvm.org/D145223



More information about the llvm-commits mailing list