HomePhabricator

[ValueTracking] Fix one s/dyn_cast/dyn_cast_or_null/

Authored by markus on Jan 13 2021, 4:25 AM.

Description

[ValueTracking] Fix one s/dyn_cast/dyn_cast_or_null/

Handle if Constant::getAggregateElement() returns nullptr in
canCreateUndefOrPoison().

Differential Revision: https://reviews.llvm.org/D94494

Details

Committed
markusJan 13 2021, 4:39 AM
Differential Revision
D94494: canCreateUndefOrPoison: dyn_cast -> dyn_cast_or_null
Parents
rG2170e0ee60db: [SVE][CodeGen] CTLZ, CTTZ & CTPOP operations (predicates)
Branches
Unknown
Tags
Unknown