[all-commits] [llvm/llvm-project] bb6d60: [FuncSpec][NFC] Sink cast into function.

Alexandros Lamprineas via All-commits all-commits at lists.llvm.org
Fri Jul 14 06:03:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb6d60bf9dfea82814d9e50c5bb457c47d010611
      https://github.com/llvm/llvm-project/commit/bb6d60bf9dfea82814d9e50c5bb457c47d010611
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2023-07-14 (Fri, 14 Jul 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

  Log Message:
  -----------
  [FuncSpec][NFC] Sink cast into function.

Before looking up a value in the map of known constants we attempt
to dynamically cast it. The code looks cleaner if we move the cast
inside findConstantFor(), where the look up happens.

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




More information about the All-commits mailing list