[all-commits] [llvm/llvm-project] af382b: [IR] Handle constant expressions in containsUndefi...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Sep 9 13:04:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af382b93831ae6a58bce8bc075458cfd056e3976
      https://github.com/llvm/llvm-project/commit/af382b93831ae6a58bce8bc075458cfd056e3976
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-09-09 (Thu, 09 Sep 2021)

  Changed paths:
    M llvm/lib/IR/Constants.cpp
    M llvm/test/Transforms/InstSimplify/ConstProp/vecreduce.ll

  Log Message:
  -----------
  [IR] Handle constant expressions in containsUndefinedElement()

If the constant is a constant expression, then getAggregateElement()
will return null. Guard against this before calling HasFn().




More information about the All-commits mailing list