HomePhabricator

[AArch64][GlobalISel] Fix a crash when selecting shufflevectors with an undef…

Authored by aemerson on Apr 12 2019, 2:31 PM.

Description

[AArch64][GlobalISel] Fix a crash when selecting shufflevectors with an undef mask element.

If a shufflevector's mask vector has an element with "undef" then the generic
instruction defining that element register is a G_IMPLICT_DEF instead of G_CONSTANT.
This fixes the selector to handle this case, and for now assumes that undef just means
zero. In future we'll optimize this case properly.

llvm-svn: 358312

Details

Committed
aemersonApr 12 2019, 2:31 PM
Parents
rGb6e6d3c740a4: [libFuzzer] Fix DataFlow.cpp logic when tracing long inputs.
Branches
Unknown
Tags
Unknown