[all-commits] [llvm/llvm-project] f7c0e2: [ARM] Prevent constants from iCmp instruction from...

Meera Nakrani via All-commits all-commits at lists.llvm.org
Fri Oct 2 02:29:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f7c0e2b8f26fc6573f663f482aa64443ab6a6e71
      https://github.com/llvm/llvm-project/commit/f7c0e2b8f26fc6573f663f482aa64443ab6a6e71
  Author: Meera Nakrani <meera.nakrani at arm.com>
  Date:   2020-10-02 (Fri, 02 Oct 2020)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    A llvm/test/CodeGen/ARM/ssat-unroll-loops.ll

  Log Message:
  -----------
  [ARM] Prevent constants from iCmp instruction from being hoisted if part of a min(max()) pattern

Marks constants of an ICmp instruction as free if it's only user is a select
instruction that is part of a min(max()) pattern. Ensures that in loops, in
particular when loop unrolling is turned on, SSAT will still be correctly generated.

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




More information about the All-commits mailing list