[all-commits] [llvm/llvm-project] d7645f: [Bitcode] Delete instruction on error

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 11 01:56:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7645f4ef866059da66442308c4c015c55b84e02
      https://github.com/llvm/llvm-project/commit/d7645f4ef866059da66442308c4c015c55b84e02
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-11 (Fri, 11 Mar 2022)

  Changed paths:
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp

  Log Message:
  -----------
  [Bitcode] Delete instruction on error

As these errors are detected after the instruction has already been
created (but before it has been inserted into the function), we
also need to delete it.


  Commit: 02c21060029cff4fdfd9eab3011a1fec6de2f9a0
      https://github.com/llvm/llvm-project/commit/02c21060029cff4fdfd9eab3011a1fec6de2f9a0
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-11 (Fri, 11 Mar 2022)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/opaque-ptr.ll

  Log Message:
  -----------
  [InstSimplify] Handle vector GEP when simplifying zero indices

If the base is a scalar and the index is a vector, we can't
simplify, as this is effectively a splat operation.


Compare: https://github.com/llvm/llvm-project/compare/5c3861b2772c...02c21060029c


More information about the All-commits mailing list