[llvm] [X86] abs i8 - perform as abs i32 if we have access to CMOV (PR #95101)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 05:13: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 a141a28c0cf415d8ca410a636c3aacf3d683ab38 9686cc7ed73c3574282bf06b05def3f0e93b9aed -- llvm/lib/Target/X86/X86ISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 8426825dd1..6869bf25f4 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -225,7 +225,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
// Integer absolute.
if (Subtarget.canUseCMOV()) {
- setOperationAction(ISD::ABS , MVT::i8 , Custom);
+ setOperationAction(ISD::ABS, MVT::i8, Custom);
setOperationAction(ISD::ABS , MVT::i16 , Custom);
setOperationAction(ISD::ABS , MVT::i32 , Custom);
if (Subtarget.is64Bit())
``````````
</details>
https://github.com/llvm/llvm-project/pull/95101
More information about the llvm-commits
mailing list