]> gitweb.factorcode.org Git - factor.git/commitdiff
compiler.cfg.value-numbering.comparisons: fix docs name
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 22 Jan 2022 19:51:57 +0000 (11:51 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 22 Jan 2022 19:51:57 +0000 (11:51 -0800)
basis/compiler/cfg/value-numbering/comparisons/comarisons-docs.factor [deleted file]
basis/compiler/cfg/value-numbering/comparisons/comparisons-docs.factor [new file with mode: 0644]

diff --git a/basis/compiler/cfg/value-numbering/comparisons/comarisons-docs.factor b/basis/compiler/cfg/value-numbering/comparisons/comarisons-docs.factor
deleted file mode 100644 (file)
index 1d3f556..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-USING: compiler.cfg.instructions help.markup help.syntax kernel ;
-IN: compiler.cfg.value-numbering.comparisons
-
-HELP: >test-branch
-{ $values { "insn" insn } { "insn'" ##test-branch } }
-{ $description "Converts a " { $link ##compare-integer-imm-branch } " instruction into a " { $link ##test-branch } " instruction." } ;
-
-HELP: rewrite-into-test?
-{ $values { "insn" insn } { "?" boolean } }
-{ $description "Whether the comparison instruction can be trivially rewritten into a test instruction." } ;
-
-ARTICLE: "compiler.cfg.value-numbering.comparisons" "Comparisons GVN"
-"Optimizations performed here:"
-$nl
-{ $list
-  "Eliminating intermediate boolean values when the result of a comparison is used by a compare-branch."
-  "Folding comparisons where both inputs are literal."
-  "Folding comparisons where both inputs are congruent."
-  "Converting compare instructions into compare-imm instructions."
-} ;
-
-
-ABOUT: "compiler.cfg.value-numbering.comparisons"
diff --git a/basis/compiler/cfg/value-numbering/comparisons/comparisons-docs.factor b/basis/compiler/cfg/value-numbering/comparisons/comparisons-docs.factor
new file mode 100644 (file)
index 0000000..1d3f556
--- /dev/null
@@ -0,0 +1,23 @@
+USING: compiler.cfg.instructions help.markup help.syntax kernel ;
+IN: compiler.cfg.value-numbering.comparisons
+
+HELP: >test-branch
+{ $values { "insn" insn } { "insn'" ##test-branch } }
+{ $description "Converts a " { $link ##compare-integer-imm-branch } " instruction into a " { $link ##test-branch } " instruction." } ;
+
+HELP: rewrite-into-test?
+{ $values { "insn" insn } { "?" boolean } }
+{ $description "Whether the comparison instruction can be trivially rewritten into a test instruction." } ;
+
+ARTICLE: "compiler.cfg.value-numbering.comparisons" "Comparisons GVN"
+"Optimizations performed here:"
+$nl
+{ $list
+  "Eliminating intermediate boolean values when the result of a comparison is used by a compare-branch."
+  "Folding comparisons where both inputs are literal."
+  "Folding comparisons where both inputs are congruent."
+  "Converting compare instructions into compare-imm instructions."
+} ;
+
+
+ABOUT: "compiler.cfg.value-numbering.comparisons"