summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-05-22 18:26:48 +0000
committerChris Lattner <sabre@nondot.org>2011-05-22 18:26:48 +0000
commit162dfc3e6bc536a8a629002953c322cc82b8ed61 (patch)
treeb7e6e98a96138c414d86bb19756426e7c53bbf8b /llvm/lib/Transforms
parent2a746bfe368e839439f5d8942fdd14ed6bd8a6f5 (diff)
downloadbcm5719-llvm-162dfc3e6bc536a8a629002953c322cc82b8ed61.tar.gz
bcm5719-llvm-162dfc3e6bc536a8a629002953c322cc82b8ed61.zip
add some random notes.
llvm-svn: 131862
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
index c96741aacd2..98a36545ad7 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -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;
}
OpenPOWER on IntegriCloud