[llvm] [NVPTX] Propagate truncate to operands (PR #98666)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 15:17:55 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 2853a838d22b69f61ed376abbd9ab5e625111f44 f987431f97d79ed398d2419a59401c616472633a --extensions cpp,h -- llvm/include/llvm/CodeGen/TargetLowering.h llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp llvm/lib/Target/NVPTX/NVPTXISelLowering.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.h b/llvm/lib/Target/NVPTX/NVPTXISelLowering.h
index e673d9e940..da6218a0c6 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.h
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.h
@@ -502,9 +502,7 @@ public:
DstTy->getPrimitiveSizeInBits() == 32;
}
- bool shouldReduceRegisterPressure() const override {
- return true;
- }
+ bool shouldReduceRegisterPressure() const override { return true; }
EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Ctx,
EVT VT) const override {
``````````
</details>
https://github.com/llvm/llvm-project/pull/98666
More information about the llvm-commits
mailing list