Skip to content

Commit fc654b4

Browse files
committed
[RISCV][NFC] Correct/clarify RISCVPushPopOptimizer.cpp header comment
Refer to Zcmp rather than Zca. Also, this pass will only modify POP instructions (replacing with POPRET if possible).
1 parent 0c8c9e8 commit fc654b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This file contains a pass that modifies PUSH/POP instructions from Zca
10-
// standard to use their non prolog/epilog related functionalities
11-
// and generates POPRET instruction.
9+
// This file contains a pass that replaces Zcmp POP instructions with
10+
// POPRET[Z] where possible.
1211
//
1312
//===----------------------------------------------------------------------===//
1413

0 commit comments

Comments
 (0)