[llvm] [PeepholeOptimizer] Add REG_SEQUENCE subregister use folding (PR #205795)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 04:48:29 PDT 2026


================
@@ -1739,6 +1764,119 @@ bool PeepholeOptimizerLegacy::runOnMachineFunction(MachineFunction &MF) {
   return Impl.run(MF);
 }
 
+/// Check if a REG_SEQUENCE subregister use can be safely rewritten to use
+/// the source register directly.
----------------
arsenm wrote:

You can do this fully with existing TargetRegisterInfo functions 

https://github.com/llvm/llvm-project/pull/205795


More information about the llvm-commits mailing list