[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
Owen Anderson
resistor at mac.com
Fri Aug 25 15:14:09 PDT 2006
Changes in directory llvm/lib/Transforms/Scalar:
LoopUnroll.cpp updated: 1.24 -> 1.25
---
Log message:
Fix a crash related to updating Phi nodes in the original header block. This was
causing a crash in 175.vpr
---
Diffs of the changes: (+2 -1)
LoopUnroll.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.24 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.25
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.24 Thu Aug 24 16:28:19 2006
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp Fri Aug 25 17:13:55 2006
@@ -269,7 +269,8 @@
if (isa<Instruction>(InVal))
InVal = LastValueMap[InVal];
(*SI)->removeIncomingValue(LatchBlock, false);
- (*SI)->addIncoming(InVal, cast<BasicBlock>(LastValueMap[LatchBlock]));
+ if (InVal)
+ (*SI)->addIncoming(InVal, cast<BasicBlock>(LastValueMap[LatchBlock]));
}
}
More information about the llvm-commits
mailing list