On 15 November 2013 20:05, Frank Winter <fwinter at jlab.org> wrote:> Good catch! That was the problem in my case too. I totally > overlooked the alignment requirement for AVX.I wonder if the validation mechanism shouldn't have caught it earlier... Do you guys run validate on the modules before JIT-ing? --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131115/ca6723ee/attachment.html>
Hmm.. I don't quite understand. How can a module validator catch this, when it's the pointers, i.e. the payload, you pass as function arguments that need to be aligned.. ?! Frank On 15/11/13 15:16, Renato Golin wrote:> On 15 November 2013 20:05, Frank Winter <fwinter at jlab.org > <mailto:fwinter at jlab.org>> wrote: > > Good catch! That was the problem in my case too. I totally > overlooked the alignment requirement for AVX. > > > I wonder if the validation mechanism shouldn't have caught it > earlier... Do you guys run validate on the modules before JIT-ing? > > --renato-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131115/93a0dac5/attachment.html>
Agreed, is there a pass that will insert a runtime alignment check? Also, what's the easiest way to get at TargetTransformInfo::getRegisterBitWidth() so I don't have to hard code 32? Thanks! -Josh On Fri, Nov 15, 2013 at 3:20 PM, Frank Winter <fwinter at jlab.org> wrote:> Hmm.. I don't quite understand. How can a module validator > catch this, when it's the pointers, i.e. the payload, you pass > as function arguments that need to be aligned.. ?! > Frank > > > On 15/11/13 15:16, Renato Golin wrote: > > On 15 November 2013 20:05, Frank Winter <fwinter at jlab.org> wrote: > >> Good catch! That was the problem in my case too. I totally >> overlooked the alignment requirement for AVX. > > > I wonder if the validation mechanism shouldn't have caught it earlier... > Do you guys run validate on the modules before JIT-ing? > > --renato > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131115/572ecd22/attachment.html>
On 15 November 2013 20:20, Frank Winter <fwinter at jlab.org> wrote:> Hmm.. I don't quite understand. How can a module validator > catch this, when it's the pointers, i.e. the payload, you pass > as function arguments that need to be aligned.. ?! >My mistake, I thought it was something in your front-end, generating bad IR. Ignore that comment. --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131115/47b63c12/attachment.html>