[llvm] [ConstraintElimination] Fix comment (PR #125375)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 1 17:47:58 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Lee Wei (leewei05)
<details>
<summary>Changes</summary>
Remove unused header and fix a comment.
---
Full diff: https://github.com/llvm/llvm-project/pull/125375.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Scalar/ConstraintElimination.cpp (+1-2)
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
index e0861fbedc560a..6dd26910f68469 100644
--- a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
@@ -40,7 +40,6 @@
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Transforms/Utils/ValueMapper.h"
-#include <cmath>
#include <optional>
#include <string>
@@ -654,7 +653,7 @@ ConstraintInfo::getConstraint(CmpInst::Predicate Pred, Value *Op0, Value *Op1,
bool IsEq = false;
bool IsNe = false;
- // Try to convert Pred to one of ULE/SLT/SLE/SLT.
+ // Try to convert Pred to one of ULE/ULT/SLE/SLT.
switch (Pred) {
case CmpInst::ICMP_UGT:
case CmpInst::ICMP_UGE:
``````````
</details>
https://github.com/llvm/llvm-project/pull/125375
More information about the llvm-commits
mailing list