[PATCH] D142458: [SPARC] Implement hooks for conditional branch relaxation
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 11:25:54 PST 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Target/Sparc/SparcTargetMachine.cpp:194
+ // can reach the full +- 8 MiB range.
+ if (getSparcTargetMachine().getSubtargetImpl()->isV9() && BranchRelaxation)
+ addPass(&BranchRelaxationPassID);
----------------
Don't check the global subtarget, just unconditionally enable the pass
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142458/new/
https://reviews.llvm.org/D142458
More information about the llvm-commits
mailing list