[PATCH] D109700: [InstCombine] Improve TryToSinkInstruction with multiple uses

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 13 19:58:03 PDT 2021


mkazantsev added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:3834
+            // sophisticed analysis (i.e finding NearestCommonDominator of these
+            // use blocks).
+            if (UserParent)
----------------
Can we at least allow it if they come from same block? It's typical for switches.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109700



More information about the llvm-commits mailing list