[llvm] [llvm] Replace `UndefValue` placeholders with `PoisonValue` (PR #116453)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 16:01:13 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 2d48489cc35ec9bb1c15ff115595e62d67ca8989 9be09bb57c102809bcf928ad26d7180f24393658 --extensions cpp -- llvm/unittests/Analysis/BranchProbabilityInfoTest.cpp llvm/unittests/Analysis/MemorySSATest.cpp llvm/unittests/Analysis/ScalarEvolutionTest.cpp llvm/unittests/IR/BasicBlockTest.cpp llvm/unittests/Transforms/Utils/ScalarEvolutionExpanderTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Analysis/BranchProbabilityInfoTest.cpp b/llvm/unittests/Analysis/BranchProbabilityInfoTest.cpp
index efce2de560..38dec6bd41 100644
--- a/llvm/unittests/Analysis/BranchProbabilityInfoTest.cpp
+++ b/llvm/unittests/Analysis/BranchProbabilityInfoTest.cpp
@@ -69,7 +69,7 @@ TEST_F(BranchProbabilityInfoTest, StressUnreachableHeuristic) {
unsigned NumCases = 4096;
auto *I32 = IntegerType::get(C, 32);
- auto *Poison= PoisonValue::get(I32);
+ auto *Poison = PoisonValue::get(I32);
auto *Switch = SwitchInst::Create(Poison, ExitBB, NumCases, EntryBB);
for (unsigned I = 0; I < NumCases; ++I)
Switch->addCase(ConstantInt::get(I32, I), PreExitBB);
diff --git a/llvm/unittests/Analysis/ScalarEvolutionTest.cpp b/llvm/unittests/Analysis/ScalarEvolutionTest.cpp
index 9b209b9f18..c72cecbba3 100644
--- a/llvm/unittests/Analysis/ScalarEvolutionTest.cpp
+++ b/llvm/unittests/Analysis/ScalarEvolutionTest.cpp
@@ -514,8 +514,7 @@ TEST_F(ScalarEvolutionsTest, SCEVNormalization) {
" "
"end: "
" ret void "
- "} "
- ,
+ "} ",
Err, C);
assert(M && "Could not parse module?");
``````````
</details>
https://github.com/llvm/llvm-project/pull/116453
More information about the llvm-commits
mailing list