[llvm] [InstCombineCompares] Replace the sqrt in if-condition (PR #91707)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 04:18:51 PDT 2024
================
@@ -38,6 +38,11 @@ using namespace PatternMatch;
// How many times is a select replaced by one of its operands?
STATISTIC(NumSel, "Number of select opts");
+static cl::opt<bool> ReplaceSqrtInIfCondition(
+ "replace-sqrt-compare-by-square", cl::init(false), cl::Hidden,
+ cl::desc(
+ "Try to replcae the sqrt, in the comparison condition, by the square."
+ "Like that fcmp sqrt(X), Y => fcmp X, copysing(Y*Y, Y)"));
----------------
arsenm wrote:
This is way too specific to have an option for, just remove it
https://github.com/llvm/llvm-project/pull/91707
More information about the llvm-commits
mailing list