[all-commits] [llvm/llvm-project] e91812: [InstSimplify] Avoid ConstantExpr::getIntegerCast(...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 1 03:16:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e91812792a106831eb0f3d84cbdeb759e42302d4
      https://github.com/llvm/llvm-project/commit/e91812792a106831eb0f3d84cbdeb759e42302d4
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-01 (Wed, 01 Nov 2023)

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

  Log Message:
  -----------
  [InstSimplify] Avoid ConstantExpr::getIntegerCast() (NFCI)

This always works on a constant integer or integer splat, so the
constant fold here should always succeed.




More information about the All-commits mailing list