mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 08:06:40 +00:00
[VPlan] VPPredInstPHIRecipe does not read from memory.
VPPredInstPHIRecipe just merges the incoming values and does not write to memory.
This commit is contained in:
parent
b875defc55
commit
cf2d436b31
@ -83,6 +83,7 @@ bool VPRecipeBase::mayReadFromMemory() const {
|
||||
->mayReadFromMemory();
|
||||
case VPBranchOnMaskSC:
|
||||
case VPScalarIVStepsSC:
|
||||
case VPPredInstPHISC:
|
||||
return false;
|
||||
case VPWidenIntOrFpInductionSC:
|
||||
case VPWidenCanonicalIVSC:
|
||||
|
@ -1165,9 +1165,9 @@ TEST(VPRecipeTest, MayHaveSideEffectsAndMayReadWriteMemory) {
|
||||
VPValue Op1;
|
||||
VPPredInstPHIRecipe Recipe(&Op1);
|
||||
EXPECT_FALSE(Recipe.mayHaveSideEffects());
|
||||
EXPECT_TRUE(Recipe.mayReadFromMemory());
|
||||
EXPECT_FALSE(Recipe.mayReadFromMemory());
|
||||
EXPECT_FALSE(Recipe.mayWriteToMemory());
|
||||
EXPECT_TRUE(Recipe.mayReadOrWriteMemory());
|
||||
EXPECT_FALSE(Recipe.mayReadOrWriteMemory());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user