[llvm] [llvm][InstCombine] bitcast bfloat half castpair bug (PR #79832)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 30 07:03:18 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 a3e35a4ea6fa8f1d765674c57ad280d1cbeceb4b 682363ed9c339ba08a0f524db6a14642718707e8 -- llvm/lib/IR/Instructions.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index 3189b547ca..baf8f830bf 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -3219,7 +3219,7 @@ unsigned CastInst::isEliminableCastPair(
// bitcast bfloat to half + fpext half to double we shouldn't reduce to
// fpext bfloat to double as this isn't equal to fpext half to double.
// This has been generalised for all float pairs that have the same width.
- if(SrcTy->isFloatingPointTy() && MidTy->isFloatingPointTy())
+ if (SrcTy->isFloatingPointTy() && MidTy->isFloatingPointTy())
return 0;
// No-op cast in first op implies secondOp as long as the SrcTy
// is a floating point.
``````````
</details>
https://github.com/llvm/llvm-project/pull/79832
More information about the llvm-commits
mailing list