[all-commits] [llvm/llvm-project] 0adb0f: [ConstProp] Don't fallthorugh for poison constants...
David Green via All-commits
all-commits at lists.llvm.org
Mon Aug 8 12:23:03 PDT 2022
Author: David Green <david.green at arm.com>
Date: 2022-08-08 (Mon, 08 Aug 2022)
[ConstProp] Don't fallthorugh for poison constants on vctp and active_lane_mask.
Given a poison constant as input, the dyn_cast to a ConstantInt would
fail so we would fall through to the generic code that attempts to fold
each element of the input vectors. The inputs to these intrinsics are
not vectors though, leading to a compile time crash. Instead bail out
properly for poison values by returning nullptr. This doesn't try to
define what poison means for these intrinsics.
(cherry picked from commit b2de84633a0a262b894e7cf87d29b167787aa2d6)
More information about the All-commits