enhance FoldOpIntoPhi in instcombine to try harder when a phi has
[oota-llvm.git] / lib / Transforms / Scalar / ScalarReplAggregates.cpp
index 13902552ebdb8195446dc7aca78001285214138c..0375d826f6b44e5c65a38c99345dfbddf89ab5cc 100644 (file)
@@ -1279,6 +1279,7 @@ void SROA::RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
       // address operand will be updated, so nothing else needs to be done.
     } else if (LoadInst *LI = dyn_cast<LoadInst>(User)) {
       const Type *LIType = LI->getType();
+      
       if (isCompatibleAggregate(LIType, AI->getAllocatedType())) {
         // Replace:
         //   %res = load { i32, i32 }* %alloc