[llvm-commits] [llvm] r42864 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll

Devang Patel dpatel at apple.com
Thu Oct 11 16:59:26 PDT 2007


On Oct 11, 2007, at 3:26 PM, Dan Gohman wrote:

> Oops, looking at this a little more, isn't the Size operand always in
> straight bytes, and MTy always i8, just because of how llvm.memcpy is
> declared?

yes. nice catch!

> Also, this code can be used for memmove as well as memcpy; since the  
> load
> grabs the entire source before anything is stored, overlap cases  
> would work
> correctly.

yes
-
Devang



More information about the llvm-commits mailing list