[llvm] [SPIR-V] Improve test suite pass rate when expensive checks are on (PR #101732)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 11:43:41 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 29ef92b9051bca3a35be0cbc5e03d787941f945e 8f1974faee06eee5cb8707379725c0f285df87ed --extensions cpp -- llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp b/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
index 262776deaa..af94ee4784 100644
--- a/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
@@ -301,7 +301,7 @@ void SPIRVInstructionSelector::resetVRegsType(MachineFunction &MF) {
if (Ty.isScalar()) {
unsigned Bits = Ty.getScalarSizeInBits();
switch (Bits) {
- //case 1:
+ // case 1:
case 32:
break;
default:
diff --git a/llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp b/llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp
index 67ef4fb124..019b3ee6ee 100644
--- a/llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp
@@ -348,7 +348,8 @@ createNewIdReg(SPIRVType *SpvType, Register SrcReg, MachineRegisterInfo &MRI,
}
}
} else if (SrcLLT.isVector()) {
- NewT = LLT::scalar(32); //LLT::scalar(GR.getScalarOrVectorBitWidth(SpvType));
+ NewT =
+ LLT::scalar(32); // LLT::scalar(GR.getScalarOrVectorBitWidth(SpvType));
NewT = LLT::fixed_vector(2, NewT);
if (IsFloat) {
GetIdOp = SPIRV::GET_vfID;
``````````
</details>
https://github.com/llvm/llvm-project/pull/101732
More information about the llvm-commits
mailing list