[llvm] 5a44539 - [LV] Remove unused variable. NFC.

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 22 08:53:41 PDT 2022


Thanks!  Sorry for not noticing this before the commit.

Philip

On 7/22/22 08:44, Benjamin Kramer via llvm-commits wrote:
> Author: Benjamin Kramer
> Date: 2022-07-22T17:43:58+02:00
> New Revision: 5a445395e49acc1a812b26ed9394014962508102
>
> URL: https://github.com/llvm/llvm-project/commit/5a445395e49acc1a812b26ed9394014962508102
> DIFF: https://github.com/llvm/llvm-project/commit/5a445395e49acc1a812b26ed9394014962508102.diff
>
> LOG: [LV] Remove unused variable. NFC.
>
> Added:
>      
>
> Modified:
>      llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
>
> Removed:
>      
>
>
> ################################################################################
> diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
> index 697ab53403c9..e86d56e83105 100644
> --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
> +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
> @@ -6779,7 +6779,6 @@ void LoopVectorizationCostModel::setCostBasedWideningDecision(ElementCount VF) {
>           // in each unrolled VF) and can thus handle scalable loads too.  For
>           // scalable stores, we use a scatter if legal.  If not, we have no way
>           // to lower (currently) and thus have to abort vectorization.
> -        InstructionCost Cost;
>           if (isa<StoreInst>(&I) && VF.isScalable()) {
>             if (isLegalGatherOrScatter(&I, VF))
>               setWideningDecision(&I, VF, CM_GatherScatter,
>
>
>          
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list