Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2558,8 +2558,10 @@ RISCVTTIImpl::enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const {
TTI::MemCmpExpansionOptions Options;
// TODO: Enable expansion when unaligned access is not supported after we fix
// issues in ExpandMemcmp.
if (!(ST->enableUnalignedScalarMem() &&
(ST->hasStdExtZbb() || ST->hasStdExtZbkb() || IsZeroCmp)))
if (!ST->enableUnalignedScalarMem())
return Options;

if (!(ST->hasStdExtZbb() || ST->hasStdExtZbkb() || IsZeroCmp))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deMorgan this?

return Options;

Options.AllowOverlappingLoads = true;
Expand Down
Loading