[LLVMbugs] [Bug 20194] with.overflow intrinsics not removed for arithmetic that trivially cannot overflow

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 4 03:42:51 PDT 2014


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

Benjamin Kramer <benny.kra at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |benny.kra at gmail.com
         Resolution|---                         |FIXED

--- Comment #1 from Benjamin Kramer <benny.kra at gmail.com> ---
With r212331 we get this down to

define i32 @main() #0 {
  %1 = load i8* @min, align 1, !tbaa !1
  %2 = sext i8 %1 to i32
  %3 = shl nsw i32 %2, 1
  ret i32 %3
}

-- 
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/20140704/a7838da2/attachment.html>


More information about the llvm-bugs mailing list