Skip to content

Commit 409b19f

Browse files
author
Yuanke Luo
committed
[Packetizer] Fix lit test failure
1 parent a04ae23 commit 409b19f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/AMDGPU/R600Packetizer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ bool R600Packetizer::runOnMachineFunction(MachineFunction &Fn) {
319319

320320
MachineLoopInfo &MLI = getAnalysis<MachineLoopInfoWrapperPass>().getLI();
321321

322+
const InstrItineraryData *II = ST.getInstrItineraryData();
323+
// If there is no itineraries information, abandon.
324+
if (II->Itineraries == nullptr)
325+
return false;
326+
322327
// Instantiate the packetizer.
323328
R600PacketizerList Packetizer(Fn, ST, MLI);
324329

0 commit comments

Comments
 (0)