Skip to content

Commit 645bfec

Browse files
committed
Address review comment
1 parent 736f1d2 commit 645bfec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ RISCVTTIImpl::enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const {
25612561
if (!ST->enableUnalignedScalarMem())
25622562
return Options;
25632563

2564-
if (!(ST->hasStdExtZbb() || ST->hasStdExtZbkb() || IsZeroCmp))
2564+
if (!ST->hasStdExtZbb() && !ST->hasStdExtZbkb() && !IsZeroCmp)
25652565
return Options;
25662566

25672567
Options.AllowOverlappingLoads = true;

0 commit comments

Comments
 (0)