[llvm] [IR] Make UnaryInstruction::classof recognize FreezeInst. (PR #107944)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 9 18:20:56 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 66e9078f827383f77c1c239f6c09f2b07a963649 93dfac98c544be97b0c2101a6768fc3fb54e2c5c --extensions h,cpp -- llvm/include/llvm/IR/InstrTypes.h llvm/unittests/IR/InstructionsTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h
index 4cbf0d2106..5ed3ec46dc 100644
--- a/llvm/include/llvm/IR/InstrTypes.h
+++ b/llvm/include/llvm/IR/InstrTypes.h
@@ -80,8 +80,7 @@ public:
// Methods for support type inquiry through isa, cast, and dyn_cast:
static bool classof(const Instruction *I) {
- return I->isUnaryOp() ||
- I->getOpcode() == Instruction::Alloca ||
+ return I->isUnaryOp() || I->getOpcode() == Instruction::Alloca ||
I->getOpcode() == Instruction::Load ||
I->getOpcode() == Instruction::VAArg ||
I->getOpcode() == Instruction::ExtractValue ||
``````````
</details>
https://github.com/llvm/llvm-project/pull/107944
More information about the llvm-commits
mailing list