[llvm-commits] [Review Request][Patch]Introduce the VectorizeConfig class.

Tobias Grosser tobias at grosser.es
Thu Apr 5 08:45:33 PDT 2012


On 04/05/2012 05:43 PM, Hongbin Zheng wrote:
> hi hal,
>
> I replace 4 places at list, they are:
>
> 1. bool vectorizeBasicBlock(Pass *P, BasicBlock&BB, const VectorizeConfig&C);
> 2. BasicBlockPass *createBBVectorizePass(const VectorizeConfig&C);
> 3. BBVectorize(Pass *P, const VectorizeConfig&C);
> 4. BBVectorize(const VectorizeConfig&C = VectorizeConfig())

> --- a/lib/Transforms/Vectorize/BBVectorize.cpp
> +++ b/lib/Transforms/Vectorize/BBVectorize.cpp
> @@ -140,11 +140,16 @@ STATISTIC(NumFusedOps, "Number of operations
> fused by bb-vectorize");
>   namespace {
>     struct BBVectorize : public BasicBlockPass {
>       static char ID; // Pass identification, replacement for typeid
> -    BBVectorize() : BasicBlockPass(ID) {
> +
> +    VectorizeConfig Config;

Here is another one.

Tobi



More information about the llvm-commits mailing list