Skip to content

Commit a23fae9

Browse files
Mel-Chenfhahn
andauthored
Apply suggestions from code review
Correct unwinding attr for MayHaveSideEffect. Co-authored-by: Florian Hahn <[email protected]>
1 parent 4c911e3 commit a23fae9

File tree

1 file changed

+1
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ class VPWidenIntrinsicRecipe : public VPRecipeWithIRFlags {
16971697
MayReadFromMemory = ME.onlyWritesMemory();
16981698
MayWriteToMemory = ME.onlyReadsMemory();
16991699
MayHaveSideEffects = MayWriteToMemory ||
1700-
Attrs.hasFnAttr(Attribute::NoUnwind) ||
1700+
!Attrs.hasFnAttr(Attribute::NoUnwind) ||
17011701
!Attrs.hasFnAttr(Attribute::WillReturn);
17021702
}
17031703

0 commit comments

Comments
 (0)