summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/LevelRaise.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-22 22:48:32 +0000
committerChris Lattner <sabre@nondot.org>2002-08-22 22:48:32 +0000
commit62b42ce7640353d4f1d71a656bfd92ad37da1e05 (patch)
treeaaf07a195964aa61307e2899e34b57d9902e7b0f /llvm/lib/Transforms/LevelRaise.cpp
parent4011c62a8dd3d1d8f1763bfd90243ae7f3485ba3 (diff)
downloadbcm5719-llvm-62b42ce7640353d4f1d71a656bfd92ad37da1e05.tar.gz
bcm5719-llvm-62b42ce7640353d4f1d71a656bfd92ad37da1e05.zip
*** empty log message ***
llvm-svn: 3483
Diffstat (limited to 'llvm/lib/Transforms/LevelRaise.cpp')
-rw-r--r--llvm/lib/Transforms/LevelRaise.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp
index b2008b08a13..327735c0586 100644
--- a/llvm/lib/Transforms/LevelRaise.cpp
+++ b/llvm/lib/Transforms/LevelRaise.cpp
@@ -393,8 +393,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
if (Value *CastSrc = CI->getOperand(0)) // CSPT = CastSrcPointerType
if (const PointerType *CSPT = dyn_cast<PointerType>(CastSrc->getType()))
// convertable types?
- if (Val->getType()->isLosslesslyConvertableTo(CSPT->getElementType()) &&
- !SI->hasIndices()) { // No subscripts yet!
+ if (Val->getType()->isLosslesslyConvertableTo(CSPT->getElementType())) {
PRINT_PEEPHOLE3("st-src-cast:in ", Pointer, Val, SI);
// Insert the new T cast instruction... stealing old T's name
@@ -433,8 +432,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
if (Value *CastSrc = CI->getOperand(0)) // CSPT = CastSrcPointerType
if (const PointerType *CSPT = dyn_cast<PointerType>(CastSrc->getType()))
// convertable types?
- if (PtrElType->isLosslesslyConvertableTo(CSPT->getElementType()) &&
- !LI->hasIndices()) { // No subscripts yet!
+ if (PtrElType->isLosslesslyConvertableTo(CSPT->getElementType())) {
PRINT_PEEPHOLE2("load-src-cast:in ", Pointer, LI);
// Create the new load instruction... loading the pre-casted value
OpenPOWER on IntegriCloud