[llvm] [WebAssembly][FastISel] Bail out on meeting non-integer type in selectTrunc (PR #167165)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 10 10:41:14 PST 2025
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index 9eae22637..a5153f577 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
@@ -158,7 +158,7 @@ private:
unsigned maskI1Value(unsigned Reg, const Value *V);
unsigned getRegForI1Value(const Value *V, const BasicBlock *BB, bool &Not);
unsigned truncate(unsigned Reg, const Value *V, MVT::SimpleValueType From,
- MVT::SimpleValueType To);
+ MVT::SimpleValueType To);
unsigned zeroExtendToI32(unsigned Reg, const Value *V,
MVT::SimpleValueType From);
unsigned signExtendToI32(unsigned Reg, const Value *V,
@@ -522,8 +522,8 @@ unsigned WebAssemblyFastISel::signExtendToI32(unsigned Reg, const Value *V,
}
unsigned WebAssemblyFastISel::truncate(unsigned Reg, const Value *V,
- MVT::SimpleValueType From,
- MVT::SimpleValueType To) {
+ MVT::SimpleValueType From,
+ MVT::SimpleValueType To) {
if (From == MVT::i64) {
if (To == MVT::i64)
return copyValue(Reg);
``````````
</details>
https://github.com/llvm/llvm-project/pull/167165
More information about the llvm-commits
mailing list