[PATCH] D51396: [Constant Hoisting] Hoisting Constant GEP Expressions

Z. Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 29 13:01:36 PDT 2018


zzheng updated this revision to Diff 163165.
zzheng added a comment.

Unfortunately bitcast + gep + bitcast will only change the constant GEP expr from multi-dimension to single dimension, and it's still a constant pool entry after lowering.


Repository:
  rL LLVM

https://reviews.llvm.org/D51396

Files:
  include/llvm/Transforms/Scalar/ConstantHoisting.h
  lib/Transforms/Scalar/ConstantHoisting.cpp
  test/Transforms/ConstantHoisting/AArch64/const-hoist-gep.ll
  test/Transforms/ConstantHoisting/ARM/const-hoist-gep.ll
  test/Transforms/ConstantHoisting/ARM/same-offset-multi-types.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51396.163165.patch
Type: text/x-patch
Size: 26415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180829/8dacbbc4/attachment-0001.bin>


More information about the llvm-commits mailing list