[llvm] [X86] X86FixupVectorConstants - load+sign-extend vector constants that can be stored in a truncated form (PR #79815)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 04:12:02 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 888501bc631c4f6d373b4081ff6c504a1ce4a682 ca12714932dee8930c129e70d688a413e869d9e1 -- llvm/lib/Target/X86/X86FixupVectorConstants.cpp llvm/lib/Target/X86/X86MCInstLower.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86FixupVectorConstants.cpp b/llvm/lib/Target/X86/X86FixupVectorConstants.cpp
index ee2bb15f6d..893ed638fc 100644
--- a/llvm/lib/Target/X86/X86FixupVectorConstants.cpp
+++ b/llvm/lib/Target/X86/X86FixupVectorConstants.cpp
@@ -265,8 +265,7 @@ static Constant *rebuildZeroUpperCst(const Constant *C, unsigned NumElts,
return nullptr;
}
-static Constant *rebuildExtCst(const Constant *C, bool IsSExt,
- unsigned NumElts,
+static Constant *rebuildExtCst(const Constant *C, bool IsSExt, unsigned NumElts,
unsigned SrcEltBitWidth) {
Type *Ty = C->getType();
unsigned NumBits = Ty->getPrimitiveSizeInBits();
``````````
</details>
https://github.com/llvm/llvm-project/pull/79815
More information about the llvm-commits
mailing list