Skip to content

Commit 917fd92

Browse files
committed
Fixup: remove dead code in InstPrinter
1 parent d955de0 commit 917fd92

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXInstPrinter.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -256,18 +256,6 @@ void NVPTXInstPrinter::printLdStCode(const MCInst *MI, int OpNum,
256256
report_fatal_error(OS.str());
257257
break;
258258
}
259-
} else if (!strcmp(Modifier, "sc")) {
260-
auto Ordering =
261-
NVPTX::Ordering(static_cast<NVPTX::OrderingUnderlyingType>(Imm));
262-
switch (Ordering) {
263-
// TODO: refactor fence insertion in ISelDagToDag instead of here
264-
// as part of implementing atomicrmw seq_cst.
265-
case NVPTX::Ordering::SequentiallyConsistent:
266-
O << "fence.sc.sys;\n\t";
267-
break;
268-
default:
269-
break;
270-
}
271259
} else if (!strcmp(Modifier, "addsp")) {
272260
switch (Imm) {
273261
case NVPTX::PTXLdStInstCode::GLOBAL:

0 commit comments

Comments
 (0)