[all-commits] [llvm/llvm-project] b4e787: [InstCombining] Refactor checks for TryToSinkInstr...

annamthomas via All-commits all-commits at lists.llvm.org
Mon Sep 13 06:04:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4e787d8f4e4b18f977888c1ece31b0852ace010
      https://github.com/llvm/llvm-project/commit/b4e787d8f4e4b18f977888c1ece31b0852ace010
  Author: Anna Thomas <anna at azul.com>
  Date:   2021-09-13 (Mon, 13 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

  Log Message:
  -----------
  [InstCombining] Refactor checks for TryToSinkInstruction. NFC

Moved out the checks for profitability of TryToSinkInstructions
into a lambda function.
This will also allow us to easily add checks for bailing out if the
transform is not profitable.

Tests-Run: instCombine tests.




More information about the All-commits mailing list