| commit | a570b5adb5e328c6ef3dd62c730389ae9a2bc2fd | [log] [tgz] |
|---|---|---|
| author | Kay Tiong Khoo <kkhoo@perfwizard.com> | Thu Dec 19 18:07:17 2013 +0000 |
| committer | Kay Tiong Khoo <kkhoo@perfwizard.com> | Thu Dec 19 18:07:17 2013 +0000 |
| tree | b2b4c68ae836eb785cca8c11038983b9464b3d61 | |
| parent | 4b7946a28aaeb79c86a0633af3751559b02cacdc [diff] |
Improved fix for PR17827 (instcombine of shift/and/compare). This change fixes the case of arithmetic shift right - do not attempt to fold that case. This change also relaxes the conditions when attempting to fold the logical shift right and shift left cases. No additional IR-level test cases included at this time. See http://llvm.org/bugs/show_bug.cgi?id=17827 for proofs that these are correct transformations. llvm-svn: 197705