[llvm] [BranchRelaxation] Remove quadratic behavior in relaxation pass (PR #96250)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 17:27:10 PDT 2024
================
@@ -718,6 +734,13 @@ bool BranchRelaxation::relaxBranchInstructions() {
}
}
+ // If we relaxed a branch, subsequent block offsets may be underestimated.
+ // Recompute them to guarantee that we relax any branches that we pushed out
+ // of range.
+ if (Changed) {
----------------
minglotus-6 wrote:
nittest nit: remove braces here per https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
https://github.com/llvm/llvm-project/pull/96250
More information about the llvm-commits
mailing list