Skip to content

Commit 4e0ec96

Browse files
Address review comments.
1 parent 0ec11d6 commit 4e0ec96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/Attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,8 +2042,8 @@ static bool checkDenormMode(const Function &Caller, const Function &Callee) {
20422042
static bool checkStrictFP(const Function &Caller, const Function &Callee) {
20432043
// Do not inline strictfp function into non-strictfp one. It would require
20442044
// conversion of all FP operations in host function to constrained intrinsics.
2045-
return !(Callee.getAttributes().hasFnAttr(Attribute::StrictFP) &&
2046-
!Caller.getAttributes().hasFnAttr(Attribute::StrictFP));
2045+
return !Callee.getAttributes().hasFnAttr(Attribute::StrictFP) ||
2046+
Caller.getAttributes().hasFnAttr(Attribute::StrictFP);
20472047
}
20482048

20492049
template<typename AttrClass>

0 commit comments

Comments
 (0)