[llvm-dev] asan for allocas on powerpc64

Jay Foad via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 24 05:32:40 PST 2015


On 24 November 2015 at 13:06, Maxim Ostapenko
<m.ostapenko at partner.samsung.com> wrote:
> On 23/11/15 16:46, Jay Foad wrote:
>>
>> In LowerGET_DYNAMIC_AREA_OFFSET() you're calling
>> MFI->getMaxCallFrameSize(), but it looks like that doesn't return useful
>> information until after the PrologEpilogInserter's
>> PEI::calculateCallsInformation() has run.
>>
>> So maybe the lowering has to be done as part of frame index elimination?
>> (I'm not too familiar with this code.)
>
>
> Yeah, this sounds like a good idea. I'm attaching another draft patch that
> tries to lower getDynamicAreaOffset during frame index elimination. There
> are still some directions for improvements, thought, such as combining
> getDynamicAreaOffset with other instructions, but anyway, could you please
> check it on your PPC box?

Yes, this fixes the test case. Thanks!

Jay.


More information about the llvm-dev mailing list