[LLVMbugs] [Bug 17827] [instcombine comparison] wrong codegen at -O1 (affecting clang trunk, 3.3, and 3.2)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 19 10:25:48 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=17827

Kay Tiong Khoo <kkhoo at perfwizard.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #42 from Kay Tiong Khoo <kkhoo at perfwizard.com> ---
Patch committed in r197705.

Author: kkhoo
Date: Thu Dec 19 12:07:17 2013
New Revision: 197705

URL: http://llvm.org/viewvc/llvm-project?rev=197705&view=rev
Log:
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131219/73f4d5c3/attachment.html>


More information about the llvm-bugs mailing list