diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-11-01 23:46:05 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-11-01 23:46:05 +0000 |
| commit | 634ca236dcac149af695b047c5c3f2a7af7391bd (patch) | |
| tree | 2a71cd30e3270a555f26c546cc98f491932c3119 /llvm/test/Transforms/LoopVectorize/gcc-examples.ll | |
| parent | eed309da88417bc5f07d49f1b2b6e6b8186f8142 (diff) | |
| download | bcm5719-llvm-634ca236dcac149af695b047c5c3f2a7af7391bd.tar.gz bcm5719-llvm-634ca236dcac149af695b047c5c3f2a7af7391bd.zip | |
InstCombine: Don't assume that m_ZExt matches an Instruction
m_ZExt might bind against a ConstantExpr instead of an Instruction.
Assuming this, using cast<Instruction>, results in InstCombine crashing.
Instead, introduce ZExtOperator to bridge both Instruction and
ConstantExpr ZExts.
This fixes PR21445.
llvm-svn: 221069
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/gcc-examples.ll')
0 files changed, 0 insertions, 0 deletions

