[llvm-commits] [llvm] r131862 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Chris Lattner sabre at nondot.org
Sun May 22 11:26:48 PDT 2011


Author: lattner
Date: Sun May 22 13:26:48 2011
New Revision: 131862

URL: http://llvm.org/viewvc/llvm-project?rev=131862&view=rev
Log:
add some random notes.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=131862&r1=131861&r2=131862&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Sun May 22 13:26:48 2011
@@ -40,6 +40,11 @@
     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;
 }
 





More information about the llvm-commits mailing list