[all-commits] [llvm/llvm-project] a1403d: [ConstantFolding] Avoid use of ConstantExpr::getOr...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jul 24 08:00:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1403dc3d077e6bba0cbe9dbbbfc7aef4c7ad6b2
      https://github.com/llvm/llvm-project/commit/a1403dc3d077e6bba0cbe9dbbbfc7aef4c7ad6b2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  [ConstantFolding] Avoid use of ConstantExpr::getOr() (NFC)

Constant folding cannot fail here, because we're really working
on plain integers. It might be better to make all of this work
on APInts instead of Constants.




More information about the All-commits mailing list