[all-commits] [llvm/llvm-project] 1ff9aa: [IR] Handle constant expressions in containsUndefi...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Sep 10 09:04:40 PDT 2021
Branch: refs/heads/release/13.x
Home: https://github.com/llvm/llvm-project
Commit: 1ff9aa2bfe19dc8cefe7ced1a277cc58477b5dcb
https://github.com/llvm/llvm-project/commit/1ff9aa2bfe19dc8cefe7ced1a277cc58477b5dcb
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-09-10 (Fri, 10 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().
(cherry picked from commit af382b93831ae6a58bce8bc075458cfd056e3976)
More information about the All-commits
mailing list