commit | d2d5ee3893220cec256c829a4740a718232f84ac | [log] [tgz] |
---|---|---|
author | Pirama Arumuga Nainar <pirama@google.com> | Tue Apr 12 14:04:50 2016 -0700 |
committer | Pirama Arumuga Nainar <pirama@google.com> | Thu Apr 14 13:20:22 2016 -0700 |
tree | 1b4ce55cf140d5878c5145d5dd76d80c4c43b26f | |
parent | f039d98d346006442b61255a2889b8513a8cd56f [diff] |
Translate GEP instructions on structs to GEP on int8* http://b/24142721 X86 data layout has 64-bit scalars aligned at 4-byte boundaries, while ARM aligns these data at 8-byte boundaries. To bring frontend- and backend-generated code into agreement, this patch adds a pass to translate GEPs on structs to GEPs with int8* operands and byte offsets. This pass runs only on X86 targets. Change-Id: I961b2bc7db9f57f15126f27396db42c9deedfd43