diff options
author | Paul Kirth <paulkirth@google.com> | 2024-06-10 23:06:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 08:06:06 +0200 |
commit | 607afa0b6375e4837fef298a798f5534e783d777 (patch) | |
tree | bc96cda2dc26b207d70030af09cba3f37d402aad /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | 41c650e8208f7804eb5ecd8749d6b31b6e518bb7 (diff) | |
download | llvm-607afa0b6375e4837fef298a798f5534e783d777.zip llvm-607afa0b6375e4837fef298a798f5534e783d777.tar.gz llvm-607afa0b6375e4837fef298a798f5534e783d777.tar.bz2 |
Revert "[llvm][IR] Extend BranchWeightMetadata to track provenance of weights" (#95060)
Reverts llvm/llvm-project#86609
This change causes compile-time regressions for stage2 builds
(https://llvm-compile-time-tracker.com/compare.php?from=3254f31a66263ea9647c9547f1531c3123444fcd&to=c5978f1eb5eeca8610b9dfce1fcbf1f473911cd8&stat=instructions:u).
It also introduced unintended changes to `.text` which should be
addressed before relanding.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp index 04042e7..3d950b15 100644 --- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp @@ -390,13 +390,13 @@ static void updateBranchWeights(BranchInst &PreHeaderBI, BranchInst &LoopBI, SuccsSwapped ? LoopBackWeight : ExitWeight1, SuccsSwapped ? ExitWeight1 : LoopBackWeight, }; - setBranchWeights(LoopBI, LoopBIWeights, /*IsExpected=*/false); + setBranchWeights(LoopBI, LoopBIWeights); if (HasConditionalPreHeader) { const uint32_t PreHeaderBIWeights[] = { SuccsSwapped ? EnterWeight : ExitWeight0, SuccsSwapped ? ExitWeight0 : EnterWeight, }; - setBranchWeights(PreHeaderBI, PreHeaderBIWeights, /*IsExpected=*/false); + setBranchWeights(PreHeaderBI, PreHeaderBIWeights); } } |