Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

[No Merge] CopyBlk copyprop #24915

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ internal void ThrowIfCompletedUnsuccessfully()
}

/// <summary>Gets an awaiter for this <see cref="ValueTask"/>.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public ValueTaskAwaiter GetAwaiter() => new ValueTaskAwaiter(in this);

/// <summary>Configures an awaiter for this <see cref="ValueTask"/>.</summary>
Expand Down
16 changes: 16 additions & 0 deletions src/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -6233,6 +6233,22 @@ class Compiler
void optCopyProp(BasicBlock* block, GenTreeStmt* stmt, GenTree* tree, LclNumToGenTreePtrStack* curSsaName);
void optBlockCopyPropPopStacks(BasicBlock* block, LclNumToGenTreePtrStack* curSsaName);
void optBlockCopyProp(BasicBlock* block, LclNumToGenTreePtrStack* curSsaName);
void optCopyPropFoldCopyBlks(BasicBlock* block);
void optCopyPropThroughCopyBlk(BasicBlock* block);
bool optTryGetCopyPropLclVars(GenTree* expr, GenTreeLclVarCommon*& srcLclVar, GenTreeLclVarCommon*& dstLclVar);
bool optTryGetCopyPropLclVar(GenTree* op, GenTreeLclVarCommon*& lclVar);
void optCopyPropUpdateTree(GenTreeStmt* currStmt, GenTreeStmt* updatedStmt, GenTree* newOpt);
#ifndef DEBUG
bool optTryGetCopyPropNewOpt(GenTree* opt, GenTree*& newOpt);
#else
bool optTryGetCopyPropNewOpt(GenTree* opt,
GenTree*& newOpt,
GenTree* currExpr,
GenTree* updatedExpr,
GenTreeLclVarCommon* currLclVar,
GenTreeLclVarCommon* updatedLclVar,
bool isReverse);
#endif
bool optIsSsaLocal(GenTree* tree);
int optCopyProp_LclVarScore(LclVarDsc* lclVarDsc, LclVarDsc* copyVarDsc, bool preferOp2);
void optVnCopyProp();
Expand Down
Loading