[llvm] [SelectionDAG] Allow FREEZE to be hoisted before FP SETCC. (PR #84358)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 10:39:39 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 0bd9255f8ad9f321dd606365e2bc28447a9976cb a2c021b561760641a38f93d57ceb944c1957cbcf -- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/lib/Target/RISCV/RISCVISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 022d097f48..06fe716a22 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -5106,8 +5106,8 @@ bool SelectionDAG::canCreateUndefOrPoison(SDValue Op, const APInt &DemandedElts,
const TargetOptions &Options = getTarget().Options;
return Options.NoNaNsFPMath || Options.NoInfsFPMath ||
- (ConsiderFlags && (Op->getFlags().hasNoNaNs() ||
- Op->getFlags().hasNoInfs()));
+ (ConsiderFlags &&
+ (Op->getFlags().hasNoNaNs() || Op->getFlags().hasNoInfs()));
}
// Matches hasPoisonGeneratingFlags().
``````````
</details>
https://github.com/llvm/llvm-project/pull/84358
More information about the llvm-commits
mailing list