[llvm-bugs] [Bug 30841] wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 31 16:58:58 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30841

Sanjay Patel <spatel+llvm at rotateright.com> changed:

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

--- Comment #6 from Sanjay Patel <spatel+llvm at rotateright.com> ---
Dangers of trying to make better DAG folds noted...

Hopefully fixed with:
https://reviews.llvm.org/rL285656

Thanks, Zhendong!

Note: I skimmed the rest of InstCombiner::SimplifyDemandedUseBits(), and this
appears to be the only case where we need to clear nsw/nuw. 

It would obviously be better if there was some way to share the demanded bits
logic between IR and the DAG.

-- 
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/20161031/5230ed5c/attachment-0001.html>


More information about the llvm-bugs mailing list