diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2015-10-06 10:34:53 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2015-10-06 10:34:53 +0000 |
commit | 40f59e4466762ddcbe19da63e9434cbf50ba98dd (patch) | |
tree | 975b9915f2ddd9f07362f9ef304cf93f86749864 /lldb/scripts/Python/finishSwigPythonLLDB.py | |
parent | b93511a636491b58d477787c7fc65592ad773c3b (diff) | |
download | bcm5719-llvm-40f59e4466762ddcbe19da63e9434cbf50ba98dd.tar.gz bcm5719-llvm-40f59e4466762ddcbe19da63e9434cbf50ba98dd.zip |
[InstCombine] Teach SimplifyDemandedVectorElts how to handle ConstantVector select masks with ConstantExpr elements (PR24922)
If the mask of a select instruction is a ConstantVector, method
SimplifyDemandedVectorElts iterates over the mask elements to identify which
values are selected from the select inputs.
Before this patch, method SimplifyDemandedVectorElts always used method
Constant::isNullValue() to check if a value in the mask was zero. Unfortunately
that method always returns false when called on a ConstantExpr.
This patch fixes the problem in SimplifyDemandedVectorElts by adding an explicit
check for ConstantExpr values. Now, if a value in the mask is a ConstantExpr, we
avoid calling isNullValue() on it.
Fixes PR24922.
Differential Revision: http://reviews.llvm.org/D13219
llvm-svn: 249390
Diffstat (limited to 'lldb/scripts/Python/finishSwigPythonLLDB.py')
0 files changed, 0 insertions, 0 deletions