File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -820,7 +820,7 @@ void VPInstruction::execute(VPTransformState &State) {
820
820
}
821
821
822
822
bool VPInstruction::opcodeMayReadOrWriteFromMemory () const {
823
- if (Instruction::isBinaryOp (getOpcode ()))
823
+ if (Instruction::isBinaryOp (getOpcode ()) || Instruction::isCast ( getOpcode ()) )
824
824
return false ;
825
825
switch (getOpcode ()) {
826
826
case Instruction::ICmp:
Original file line number Diff line number Diff line change @@ -115,10 +115,7 @@ bool vputils::isUniformAcrossVFsAndUFs(VPValue *V) {
115
115
})
116
116
.Case <VPInstruction>([](const auto *VPI) {
117
117
return Instruction::isCast (VPI->getOpcode ())
118
- ? all_of (VPI->operands (),
119
- [](VPValue *Op) {
120
- return isUniformAcrossVFsAndUFs (Op);
121
- })
118
+ ? all_of (VPI->operands (), isUniformAcrossVFsAndUFs)
122
119
: false ;
123
120
})
124
121
.Case <VPWidenCastRecipe>([](const auto *R) {
You can’t perform that action at this time.
0 commit comments