[PATCH] D31116: arm: don't promote too small constants

James Molloy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 18 02:35:26 PDT 2017


jmolloy requested changes to this revision.
jmolloy added a comment.
This revision now requires changes to proceed.

Hi Tim,

Thanks for looking into this. I'm not 100% certain about your patch though. The intent in this code is that everything gets padded to a multiple of 4 bytes (see PaddingPossible and RequiredPadding above). I'd expect that in the case you describe, RequiredPadding would be != 4, so the loop at line 3095 would padd out the global and avoid putting too-small data in the constant pool.

Without a reduced testcase (which would be needed to commit the change) I can't offhand see where the problem could actually be.

Cheers,

James


https://reviews.llvm.org/D31116





More information about the llvm-commits mailing list