Go to file
Benjamin Kramer b49b964b98 InstCombine: Turn umul_with_overflow into mul nuw if we can prove that it cannot overflow.
This happens a lot in clang-compiled C++ code because it adds overflow checks to operator new[]:
  unsigned *foo(unsigned n) { return new unsigned[n]; }
We can optimize away the overflow check on 64 bit targets because (uint64_t)n*4 cannot overflow.

llvm-svn: 127418
2011-03-10 18:40:14 +00:00
clang lib/CodeGen/CGCall.cpp: Don't invoke multiple Builder.CreateBitCast() on Builder.CreateMemCpy. Or we would see sideeffect incompatibility among gcc and clang. 2011-03-10 14:02:21 +00:00
compiler-rt <rdar://problem/9099747> fix use of SDKROOT 2011-03-08 20:25:22 +00:00
debuginfo-tests test case for r125249. 2011-02-10 00:41:14 +00:00
libcxx http://llvm.org/bugs/show_bug.cgi?id=9444 2011-03-10 17:27:57 +00:00
lldb Add Makefile support for the Platform plugins. 2011-03-10 03:08:28 +00:00
llvm InstCombine: Turn umul_with_overflow into mul nuw if we can prove that it cannot overflow. 2011-03-10 18:40:14 +00:00