[llvm] 0c4f374 - [MSP430] Default to NewPM

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 22:59:02 PDT 2026


Author: Aiden Grossman
Date: 2026-08-12T22:58:58-07:00
New Revision: 0c4f374b180155075d72fd9dd7742f0479d77ebd

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

LOG: [MSP430] Default to NewPM

MSP430 should be fully complete with the NewPM, so default to it.

This flag makes both clang and llc default to using the NewPM for
CodeGen.

Reviewers: asl

Pull Request: https://github.com/llvm/llvm-project/pull/214573

Added: 
    

Modified: 
    llvm/lib/Target/MSP430/MSP430TargetMachine.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/MSP430/MSP430TargetMachine.h b/llvm/lib/Target/MSP430/MSP430TargetMachine.h
index 1897e64fcdb56..b27ad4ffab741 100644
--- a/llvm/lib/Target/MSP430/MSP430TargetMachine.h
+++ b/llvm/lib/Target/MSP430/MSP430TargetMachine.h
@@ -55,6 +55,8 @@ class MSP430TargetMachine : public CodeGenTargetMachineImpl {
                              CodeGenFileType FileType,
                              const CGPassBuilderOption &Opt, MCContext &Ctx,
                              PassInstrumentationCallbacks *PIC) override;
+
+  bool shouldDefaultToNewPM() const override { return true; }
 }; // MSP430TargetMachine.
 
 } // end namespace llvm


        


More information about the llvm-commits mailing list