[all-commits] [llvm/llvm-project] b7baf2: [IR] Mark mul constant expression as undesirable

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Feb 13 01:28:10 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7baf2ee8d302aab7cae787645ee7b7ec107e3ee
      https://github.com/llvm/llvm-project/commit/b7baf2ee8d302aab7cae787645ee7b7ec107e3ee
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-02-13 (Thu, 13 Feb 2025)

  Changed paths:
    M llvm/lib/IR/Constants.cpp
    M llvm/test/Transforms/InstCombine/add2.ll
    M llvm/test/Transforms/NewGVN/2009-11-12-MemDepMallocBitCast.ll

  Log Message:
  -----------
  [IR] Mark mul constant expression as undesirable

This is a (very belated) reland of 0a362f12ec60a49a054befec8620a8e69523af54,
which I originally reverted due to flang test failures.

This marks mul constant expressions as undesirable, which means that
we will no longer create them by default, but they can still be
created explicitly.

Part of:
https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179



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