[PATCH] D52243: [ConstHoist]Do NOT rebase single-dependent of base constant

Z. Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 18 11:51:18 PDT 2018


zzheng created this revision.
zzheng added reviewers: efriedma, zinob.

If a Base constant A has only one dependent constant B, do NOT rebase B. One extra ADD instruction is required to materialize B, assuming A and B have the same cost.


Repository:
  rL LLVM

https://reviews.llvm.org/D52243

Files:
  lib/Transforms/Scalar/ConstantHoisting.cpp
  test/CodeGen/Thumb/consthoist-single-dependent.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52243.166012.patch
Type: text/x-patch
Size: 8148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180918/982a5962/attachment.bin>


More information about the llvm-commits mailing list