[PATCH] [InstCombine] Fold endian-independent load sequence into a single load.

Ahmed Bougacha ahmed.bougacha at gmail.com
Wed Oct 22 10:47:12 PDT 2014


Address Hal's comments:
- bail out early if the byte load instruction isn't in the same block as the shift
- query AA instead of bailing out for all stores

Also, test that the unaligned folded load is made to be aligned  (this is done by other InstCombines, but it's pretty important for this; I can remove the test if desired)

http://reviews.llvm.org/D5898

Files:
  lib/Transforms/InstCombine/InstCombine.h
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/endian-independent-load-BE.ll
  test/Transforms/InstCombine/endian-independent-load-LE-aliasing.ll
  test/Transforms/InstCombine/endian-independent-load-LE.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5898.15257.patch
Type: text/x-patch
Size: 29563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141022/187f10b4/attachment.bin>


More information about the llvm-commits mailing list