diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-01-13 16:51:00 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-01-13 16:51:00 +0000 |
commit | 9bc0415c1fd937bdbc7d87bb7486b83c0aab32c9 (patch) | |
tree | 81c8dda23de55ca91376b7b681e8e5af37ad0768 /llvm/lib/Bitcode/Reader/BitReader.cpp | |
parent | 808df6725f29297a386725ec4e89835112f9b703 (diff) | |
download | llvm-9bc0415c1fd937bdbc7d87bb7486b83c0aab32c9.zip llvm-9bc0415c1fd937bdbc7d87bb7486b83c0aab32c9.tar.gz llvm-9bc0415c1fd937bdbc7d87bb7486b83c0aab32c9.tar.bz2 |
[AArch64] Fix assertion failure caused by an invalid comparison between APInt values.
APInt only knows how to compare values with the same BitWidth and asserts
in all other cases.
With this fix, function PerformORCombine does not use the APInt equality
operator if the APInt values returned by 'isConstantSplat' differ in BitWidth.
In that case they are different and no comparison is needed.
llvm-svn: 199119
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions