[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:52 PDT 2024


================
@@ -0,0 +1,87 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=instcombine -S -replace-sqrt-compare-by-square=true | FileCheck %s -check-prefix=OPT-TRUE
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s -check-prefix=OPT-FALSE
+
+define i1 @foo1_fast(float %a, float %b) {
----------------
arsenm wrote:

Better name than foo? 

https://github.com/llvm/llvm-project/pull/91707


More information about the llvm-commits mailing list