[all-commits] [llvm/llvm-project] e64ed1: [InstCombine] Avoid use of ConstantExpr::getShl()

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jun 18 07:40:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e64ed1db46967fe9963751873b5d0098b57c9316
      https://github.com/llvm/llvm-project/commit/e64ed1db46967fe9963751873b5d0098b57c9316
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp

  Log Message:
  -----------
  [InstCombine] Avoid use of ConstantExpr::getShl()

Either use IRBuilder or the constant folding API instead. For
the IRBuilder uses, also switch to ImmConstant to make sure that
folding will succeed.



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