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

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


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

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

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

Use the constant folding API instead (we later call isNotMinSignedValue
on it, so we do need the Constant* return type here). Use ImmConstant
to guarantee that constant folding succeeds.



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