[all-commits] [llvm/llvm-project] 87c39e: [ConstantFolding] Implement canConstantFoldCallTo(...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Sep 8 02:13:03 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87c39e6dce0a6a4106927c9284258d49924a80de
      https://github.com/llvm/llvm-project/commit/87c39e6dce0a6a4106927c9284258d49924a80de
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M llvm/include/llvm/Analysis/ConstantFolding.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Transforms/Utils/SCCPSolver.cpp

  Log Message:
  -----------
  [ConstantFolding] Implement canConstantFoldCallTo() using TLI (#221903)

This did some odd matching on string names. Use TLI instead, matching
the actual constant folding logic.

I've adjusted callers to pass TLI to canConstantFoldCallTo() if they
also pass TLI to the later constant folding call.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list