On Wed, 7 Nov 2007, Dale Johannesen wrote:> Would it be terrible to drop the alignment on memcpy altogether? The > source and destination have alignments and llvm should be able to figure > out what the safe alignment is for memcpy. This is a target-dependent > decision anyway; misaligned loads are a good idea on some targets, not > on others.No, it wouldn't be terrible. This sounds like a good short-term fix. -Chris -- http://nondot.org/sabre/ http://llvm.org/
On 11/7/07, Chris Lattner <sabre at nondot.org> wrote:> No, it wouldn't be terrible. This sounds like a good short-term fix. >My patch as the short-term fix? :-) -bw
On Wed, 7 Nov 2007, Bill Wendling wrote:> On 11/7/07, Chris Lattner <sabre at nondot.org> wrote: >> No, it wouldn't be terrible. This sounds like a good short-term fix. >> > My patch as the short-term fix? :-)Just force the alignment of llvm.memcpy and friends to 1 in all cases. -Chris -- http://nondot.org/sabre/ http://llvm.org/