[llvm-commits] [PATCH] LICM: Do not loose alignment on promotion

Tobias Grosser tobias at grosser.es
Wed Jul 6 09:39:17 PDT 2011


The promotion code lost any alignment information, when hoisting loads and
stores out of the loop. This lead to incorrect aligned memory accesses. We now
use the largest alignment we can prove to be correct.
---

 lib/Transforms/Scalar/LICM.cpp               |   38 ++++++++++++++++++++-----
 test/Transforms/LICM/2011-07-06-Alignment.ll |   26 +++++++++++++++++
 2 files changed, 56 insertions(+), 8 deletions(-)
 create mode 100644 test/Transforms/LICM/2011-07-06-Alignment.ll

OK to commit?

Tobi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-LICM-Do-not-loose-alignment-on-promotion.patch
Type: text/x-patch
Size: 5192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110706/3065aef5/attachment.bin>


More information about the llvm-commits mailing list