diff options
author | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | 2013-02-15 14:35:47 +0000 |
---|---|---|
committer | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | 2013-02-15 14:35:47 +0000 |
commit | 61c167c62b6852351102cdbcc80a5207d7fef1bb (patch) | |
tree | 5b59b3c0b2786c9dd1516ed7832d59a752cba3cb /clang/lib/CodeGen/ItaniumCXXABI.cpp | |
parent | 2e44769ed21b9190ff288e3c4e0a90a59a60f576 (diff) | |
download | bcm5719-llvm-61c167c62b6852351102cdbcc80a5207d7fef1bb.tar.gz bcm5719-llvm-61c167c62b6852351102cdbcc80a5207d7fef1bb.zip |
Teach InstCombine to work with smaller legal types in icmp (shl %v, C1), C2
It enables to work with a smaller constant, which is target friendly for those which can compare to immediates.
It also avoids inserting a shift in favor of a trunc, which can be free on some targets.
This used to work until LLVM-3.1, but regressed with the 3.2 release.
llvm-svn: 175270
Diffstat (limited to 'clang/lib/CodeGen/ItaniumCXXABI.cpp')
0 files changed, 0 insertions, 0 deletions