Skip to content

Commit 0189f30

Browse files
Address comment
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent d6c848d commit 0189f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ class RISCVTargetLowering : public TargetLowering {
10741074
/// calls between the load and store, since these are more expensive than just
10751075
/// using scalars
10761076
bool shouldMergeStoreOfLoadsOverCall(EVT SrcVT, EVT MergedVT) const override {
1077-
return SrcVT.isScalarInteger() == MergedVT.isScalarInteger();
1077+
return !MergedVT.isVector() || SrcVT.isVector();
10781078
}
10791079

10801080
/// For available scheduling models FDIV + two independent FMULs are much

0 commit comments

Comments
 (0)