[PATCH] Implement ADRP CSE for global symbols

Jiangning Liu liujiangning1 at gmail.com
Thu Apr 24 01:16:18 PDT 2014


This new version fixed the followings,

1) Following Tim's feedback, make global merge pass work for opt, so the test cases under test/Transforms/GlobalMerge are updated to use opt only.
2) Move the original test under test/Transforms/GlobalMerge to test/CodeGen and keep the llc test. The test using llc should be still meaningful, because it make guarantee global merge pass is really enabled in PreISel for optimization level -O1 and above. The opt test can't cover this.
3) Following Quentin's feedback, hoisted some codes out of the loop.

Thanks,
-Jiangning

http://reviews.llvm.org/D3432

Files:
  include/llvm/IR/GlobalAlias.h
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/IR/Globals.cpp
  lib/Transforms/Scalar/GlobalMerge.cpp
  lib/Transforms/Scalar/Scalar.cpp
  test/CodeGen/AArch64/global-merge.ll
  test/CodeGen/AArch64/global_merge_1.ll
  test/CodeGen/ARM/global-merge-1.ll
  test/CodeGen/ARM64/global-merge.ll
  test/Transforms/GlobalMerge/AArch64/global-merge-1.ll
  test/Transforms/GlobalMerge/AArch64/global-merge-2.ll
  test/Transforms/GlobalMerge/AArch64/lit.local.cfg
  test/Transforms/GlobalMerge/ARM/arm.ll
  test/Transforms/GlobalMerge/ARM64/arm64.ll
  tools/opt/opt.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3432.8787.patch
Type: text/x-patch
Size: 27869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140424/14883502/attachment.bin>


More information about the llvm-commits mailing list