aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/X86/README.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt
index a08e8fd458..4869c5e956 100644
--- a/lib/Target/X86/README.txt
+++ b/lib/Target/X86/README.txt
@@ -112,3 +112,12 @@ FP_TO_SINT when the source operand is already in memory.
//===---------------------------------------------------------------------===//
Check if load folding would add a cycle in the dag.
+
+//===---------------------------------------------------------------------===//
+
+Model X86 EFLAGS as a real register to avoid redudant cmp / test. e.g.
+
+ cmpl $1, %eax
+ setg %al
+ testb %al, %al # unnecessary
+ jne .BB7