Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
dc5b7c1
[LV] Add initial legality checks for loops with non-dereferenceable l…
arcbbb Aug 7, 2025
78f05df
Fix braces
arcbbb Aug 8, 2025
f5315f8
Limit to single unbound access. Add tests
arcbbb Aug 9, 2025
d3246bd
clang-formatted
arcbbb Aug 9, 2025
eb316ee
trivial fix: use lower case
arcbbb Aug 9, 2025
faa6112
trivial fix
arcbbb Aug 9, 2025
b206c9f
Address comment and refine TTI to check data type
arcbbb Aug 12, 2025
72383dd
Query subtarget feature for misaligned access support
arcbbb Aug 21, 2025
0c1d007
Add align 1 case
arcbbb Aug 22, 2025
e22c486
Rename isLegalSpeculativeLoad to isLegalFaultOnlyFirstLoad
arcbbb Aug 27, 2025
2a37216
Rename isReadOnlyLoopWithSafeOrSpeculativeLoads to
arcbbb Aug 27, 2025
abb0120
Rename SpeculativeLoads to FaultOnlyFirstLoads
arcbbb Aug 27, 2025
6b920f4
Refine comments with ff loads
arcbbb Aug 27, 2025
22dee5b
Update unittest to check the returned instructions
arcbbb Aug 27, 2025
e88d5d4
Refine report messages
arcbbb Aug 27, 2025
12e6dc9
Remove TTI isLegalFaultOnlyFirstLoad
arcbbb Aug 28, 2025
3284452
Update tests
arcbbb Aug 28, 2025
10156ca
Refine description
arcbbb Sep 2, 2025
16b5376
Rename isLoopSafeWithLoadOnlyFaults to isReadOnlyLoop
arcbbb Sep 2, 2025
357ff34
Refine error message
arcbbb Sep 2, 2025
ead7a78
Refine LoadTest
arcbbb Sep 2, 2025
9e98d12
clang-format
arcbbb Sep 2, 2025
f18dae7
Update tests
arcbbb Sep 2, 2025
9dc5a7a
Rename IsLoadOnlyFaultingLoop to IsReadOnlyLoop
arcbbb Sep 3, 2025
380e064
Assert the size of NonDerefLoads
arcbbb Sep 3, 2025
93db706
pass NonDereferenceableAndAlignedLoads as reference
arcbbb Sep 3, 2025
43976f7
Rename FaultOnlyFirstLoads to PotentiallyFaultingLoads
arcbbb Sep 3, 2025
51a8329
Update report message in LoopVectorize
arcbbb Sep 3, 2025
7a99472
Update descriptions
arcbbb Sep 3, 2025
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
4 changes: 4 additions & 0 deletions llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24414,6 +24414,10 @@ bool RISCVTargetLowering::isLegalSpeculativeLoad(EVT DataType,
if (!isLegalElementTypeForRVV(ScalarType))
return false;

if (!Subtarget.enableUnalignedVectorMem() &&
Alignment < ScalarType.getStoreSize())
return false;

return true;
}

Expand Down