diff options
author | Oliver Stannard <oliver.stannard@arm.com> | 2014-11-11 17:36:01 +0000 |
---|---|---|
committer | Oliver Stannard <oliver.stannard@arm.com> | 2014-11-11 17:36:01 +0000 |
commit | 8c2c67e63c016b6708897eb6ca5816af416148bd (patch) | |
tree | 31a3fa2ccc13a91a89448cbca711fccfae7f9587 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 1ecb68d5ce702fcebef4243a9a49c65f6d5ee797 (diff) | |
download | llvm-8c2c67e63c016b6708897eb6ca5816af416148bd.zip llvm-8c2c67e63c016b6708897eb6ca5816af416148bd.tar.gz llvm-8c2c67e63c016b6708897eb6ca5816af416148bd.tar.bz2 |
LLVM incorrectly folds xor into select
LLVM replaces the SelectionDAG pattern (xor (set_cc cc x y) 1) with
(set_cc !cc x y), which is only correct when the xor has type i1.
Instead, we should check that the constant operand to the xor is all
ones.
llvm-svn: 221693
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions