[llvm] fc654b4 - [RISCV][NFC] Correct/clarify RISCVPushPopOptimizer.cpp header comment

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 08:51:19 PDT 2023


Author: Alex Bradbury
Date: 2023-10-10T16:50:15+01:00
New Revision: fc654b4f598eba8c4cf8989be8376277d268740f

URL: https://github.com/llvm/llvm-project/commit/fc654b4f598eba8c4cf8989be8376277d268740f
DIFF: https://github.com/llvm/llvm-project/commit/fc654b4f598eba8c4cf8989be8376277d268740f.diff

LOG: [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).

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp b/llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp
index f885adca669fe87..5e8a4a351bd3716 100644
--- a/llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp
+++ b/llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp
@@ -6,9 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// This file contains a pass that modifies PUSH/POP instructions from Zca
-// standard to use their non prolog/epilog related functionalities
-// and generates POPRET instruction.
+// This file contains a pass that replaces Zcmp POP instructions with
+// POPRET[Z] where possible.
 //
 //===----------------------------------------------------------------------===//
 


        


More information about the llvm-commits mailing list