[all-commits] [llvm/llvm-project] 41f0b6: [Evaluator] Use ConstantFoldInstOperands()

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jun 30 02:10:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41f0b6a78143776d673565cfa830849e3b468b8e
      https://github.com/llvm/llvm-project/commit/41f0b6a78143776d673565cfa830849e3b468b8e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-06-30 (Thu, 30 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/Evaluator.cpp

  Log Message:
  -----------
  [Evaluator] Use ConstantFoldInstOperands()

For instructions that don't need any special handling, use
ConstantFoldInstOperands(), rather than re-implementing individual
cases.

This is probably not NFC because it can handle cases the previous
code missed (e.g. vector operations).




More information about the All-commits mailing list