add some random notes.
authorChris Lattner <sabre@nondot.org>
Sun, 22 May 2011 18:26:48 +0000 (18:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 22 May 2011 18:26:48 +0000 (18:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131862 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

index c96741aacd210a122232fdde79b9e02bebe1b81a..98a36545ad793a7bc94912c41afd92b2063546a3 100644 (file)
@@ -40,6 +40,11 @@ static Value *simplifyValueKnownNonZero(Value *V, InstCombiner &IC) {
     return IC.Builder->CreateShl(One, A);
   }
   
+  // TODO: Lots more we could do here:
+  //    "1 >> X" could get an "isexact" bit.
+  //    If V is a phi node, we can call this on each of its operands.
+  //    "select cond, X, 0" can simplify to "X".
+  
   return 0;
 }