[all-commits] [llvm/llvm-project] a111fb: [SelectOpti][5/5] Optimize select-to-branch transf...

Sotiris Apostolakis via All-commits all-commits at lists.llvm.org
Mon May 23 20:34:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a111fb960108df910a864500f3b98d75d37f083c
      https://github.com/llvm/llvm-project/commit/a111fb960108df910a864500f3b98d75d37f083c
  Author: Sotiris Apostolakis <apostolakis at google.com>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectOptimize.cpp
    M llvm/test/CodeGen/X86/select-optimize.ll

  Log Message:
  -----------
  [SelectOpti][5/5] Optimize select-to-branch transformation

This patch optimizes the transformation of selects to a branch when the heuristics deemed it profitable.
It aggressively sinks eligible instructions to the newly created true/false blocks to prevent their
execution on the common path and interleaves dependence slices to maximize ILP.

Depends on D120232

Reviewed By: davidxl

Differential Revision: https://reviews.llvm.org/D120233




More information about the All-commits mailing list