[all-commits] [llvm/llvm-project] 6dac17: [SCEVExpander] Support cost evaluation of several ...

Max Kazantsev via All-commits all-commits at lists.llvm.org
Tue Dec 6 02:02:50 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6dac170140d09c23b305558939dc45416f0ec865
      https://github.com/llvm/llvm-project/commit/6dac170140d09c23b305558939dc45416f0ec865
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp

  Log Message:
  -----------
  [SCEVExpander] Support cost evaluation of several SCEVs with same budget

This is a follow-up from discussion in D138412. Sometimes we want to evaluate
the cost of expansion of several SCEVs together with same budget. For example,
if one of them is a bit above cheap limit, and the second one is free, then
we still want to expand. Checking each of them with "cheap" limit is a bit more
pessimistic.

Differential Revision: https://reviews.llvm.org/D138475
Reviewed By: lebedev.ri




More information about the All-commits mailing list