[PATCH] D12886: Clean up: Refactoring the hardcoded value of 6 for FindAvailableLoadedValue()'s parameter MaxInstsToScan.

Larisse Voufo via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 19:20:49 PDT 2015


lvoufo updated this revision to Diff 34867.
lvoufo added a comment.

Using cl::opt now. 
This patch should focus only on the refactoring and documentation of the value 6.
I will change the value to 8 or consider alternative options (e.g. messing with -gvn instead of -instcombine)
in a separate patch (likely the initial const optimization patch that I'm working on).


http://reviews.llvm.org/D12886

Files:
  include/llvm/Analysis/Loads.h
  lib/Analysis/Lint.cpp
  lib/Analysis/Loads.cpp
  lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  lib/Transforms/Scalar/JumpThreading.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12886.34867.patch
Type: text/x-patch
Size: 6936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150916/c863c789/attachment.bin>


More information about the llvm-commits mailing list