[all-commits] [llvm/llvm-project] b846f4: [ConstantFolding] Update failure behavior document...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 20 05:51:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b846f439240887f5c6ac24eadded2d41ae8c1bd1
      https://github.com/llvm/llvm-project/commit/b846f439240887f5c6ac24eadded2d41ae8c1bd1
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-07-20 (Thu, 20 Jul 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/ConstantFolding.h

  Log Message:
  -----------
  [ConstantFolding] Update failure behavior documentation (NFC)

These functions may return null or a constant expression on failure,
depending on whether such a constant expression is still supported.


  Commit: 781beb3de5a898107c28b74c1a228d86c6eed19e
      https://github.com/llvm/llvm-project/commit/781beb3de5a898107c28b74c1a228d86c6eed19e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-07-20 (Thu, 20 Jul 2023)

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

  Log Message:
  -----------
  [LVI] Check ConstantFoldCompareInstOperands() failure (NFCI)

I don't believe this can happen right now (because we're only
working on icmps and as such can't hit the current fcmp null
paths), but this will be possible in the future when icmp
constant expressions are removed.


Compare: https://github.com/llvm/llvm-project/compare/4a8cc7382c19...781beb3de5a8


More information about the All-commits mailing list