[all-commits] [llvm/llvm-project] 5d6dfb: [ConstExpr] Avoid creation of select constant expr...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Feb 27 08:10:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d6dfba1a876456e4ef8e692afa4901b4fa90755
      https://github.com/llvm/llvm-project/commit/5d6dfba1a876456e4ef8e692afa4901b4fa90755
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetFolder.h
    M llvm/include/llvm/IR/ConstantFolder.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/test/Transforms/InstCombine/phi-select-constant.ll

  Log Message:
  -----------
  [ConstExpr] Avoid creation of select constant expressions

These expressions will now only be created if explicitly requested
in IR/bitcode (and by LowerTypeTests, which has a tricky to remove
use).

This is in preparation for removing these expressions entirely,
but also fixes #60983 in the meantime.




More information about the All-commits mailing list