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) {
820820}
821821
822822bool 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:
Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments