[llvm] [LVI] Handle range attributes (PR #86413)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 23 14:40:31 PDT 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 e9639e9c0636d9e2b9591c2cdac5cac75e363e77 cdebd6933cb40a781a4ecf17f49dc73ed4518660 -- llvm/lib/Analysis/LazyValueInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index 2504eb712e..719a19145a 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/lib/Analysis/LazyValueInfo.cpp
@@ -588,7 +588,8 @@ LazyValueInfoImpl::getBlockValue(Value *Val, BasicBlock *BB,
static ValueLatticeElement getFromRangeMetadata(Instruction *BBI) {
switch (BBI->getOpcode()) {
- default: break;
+ default:
+ break;
case Instruction::Call:
case Instruction::Invoke:
if (std::optional<ConstantRange> Range = cast<CallBase>(BBI)->getRange())
``````````
</details>
https://github.com/llvm/llvm-project/pull/86413
More information about the llvm-commits
mailing list