This patch aims to improve compile time performance by increasing
authorPreston Gurd <preston.gurd@intel.com>
Fri, 1 Feb 2013 20:41:27 +0000 (20:41 +0000)
committerPreston Gurd <preston.gurd@intel.com>
Fri, 1 Feb 2013 20:41:27 +0000 (20:41 +0000)
commit25c3b6acc04c3c4eec063b349d73779e523b9d37
treec83c8d0b0c0fff207134c582b471230cba69f155
parenta364782a157f44247fd74293b568d6f76c552d14
This patch aims to improve compile time performance by increasing
the SCEV vector size in LoopStrengthReduce. It is observed that
the BaseRegs vector size is 4 in most cases,
and elements are frequently copied when it is initialized as
SmallVector<const SCEV *, 2> BaseRegs.
Our benchmark results show that the compilation time performance
improved by ~0.5%.

Patch by Wan Xiaofei.

llvm-svn: 174219
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp