From: Chris Lattner Date: Fri, 3 Feb 2006 21:25:23 +0000 (+0000) Subject: add a note X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f92bafa2cad6c9c6bdc6fb6ec5fe2d20ca2c9e89;p=oota-llvm.git add a note git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25942 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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)". +//===---------------------------------------------------------------------===//