Skip to content

Commit e8623c4

Browse files
committed
!fixup address latest comments, thanks
1 parent 3435b9f commit e8623c4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ void VPInstruction::execute(VPTransformState &State) {
820820
}
821821

822822
bool VPInstruction::opcodeMayReadOrWriteFromMemory() const {
823-
if (Instruction::isBinaryOp(getOpcode()))
823+
if (Instruction::isBinaryOp(getOpcode()) || Instruction::isCast(getOpcode()))
824824
return false;
825825
switch (getOpcode()) {
826826
case Instruction::ICmp:

llvm/lib/Transforms/Vectorize/VPlanUtils.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ bool vputils::isUniformAcrossVFsAndUFs(VPValue *V) {
115115
})
116116
.Case<VPInstruction>([](const auto *VPI) {
117117
return Instruction::isCast(VPI->getOpcode())
118-
? all_of(VPI->operands(),
119-
[](VPValue *Op) {
120-
return isUniformAcrossVFsAndUFs(Op);
121-
})
118+
? all_of(VPI->operands(), isUniformAcrossVFsAndUFs)
122119
: false;
123120
})
124121
.Case<VPWidenCastRecipe>([](const auto *R) {

0 commit comments

Comments
 (0)