From f92bafa2cad6c9c6bdc6fb6ec5fe2d20ca2c9e89 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 3 Feb 2006 21:25:23 +0000 Subject: [PATCH] add a note git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25942 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/README.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 2a0d8e121ca..32a2e7ccbd5 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -64,4 +64,8 @@ Number 1 is the preferred solution. //===---------------------------------------------------------------------===// +For dag combiner and instcombine: +Fold: "A / (B << N)" where B is a power of 2, to "A >> (N + log2(B))". +Fold: "A % (B << N)" where B is a power of 2, to "A & ((B << N) - 1)". +//===---------------------------------------------------------------------===// -- 2.34.1