[llvm] edc8c35 - [ConstraintElimination] Fix comment (#125375)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 2 18:21:36 PST 2025
Author: Lee Wei
Date: 2025-02-03T10:21:33+08:00
New Revision: edc8c3524793049759af5e3a162b068bb03eb440
URL: https://github.com/llvm/llvm-project/commit/edc8c3524793049759af5e3a162b068bb03eb440
DIFF: https://github.com/llvm/llvm-project/commit/edc8c3524793049759af5e3a162b068bb03eb440.diff
LOG: [ConstraintElimination] Fix comment (#125375)
Remove unused header and fix a comment.
Added:
Modified:
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
Removed:
################################################################################
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:
More information about the llvm-commits
mailing list