Michael Zolotukhin
1ecdedad8d
[LoopUnrollAnalyzer] Fix a crash in analyzeLoopUnrollCost.
...
Condition might be simplified to a Constant, but it doesn't have to be
ConstantInt, so we should dyn_cast, instead of cast.
This fixes PR27886.
llvm-svn: 270924
2016-05-26 21:42:51 +00:00
Michael Zolotukhin
7216dd4668
[LoopUnrollAnalyzer] Fix a crash in UnrolledInstAnalyzer::visitCastInst.
...
This fixes PR27847. Now for real.
llvm-svn: 270629
2016-05-24 22:59:58 +00:00
Michael Zolotukhin
3898b2b587
[LoopUnrollAnalyzer] Fix a crash in UnrolledInstAnalyzer::visitCastInst.
...
This fixes PR27847.
llvm-svn: 270517
2016-05-24 00:51:01 +00:00
Michael Zolotukhin
deade19630
[Unroll] Do not crash trying to propagate a value to vector load.
...
llvm-svn: 248333
2015-09-22 22:27:12 +00:00
Michael Zolotukhin
9f06ef76d3
[Unroll] Handle SwitchInst properly.
...
Previously successor selection was simply wrong.
llvm-svn: 243545
2015-07-29 18:10:33 +00:00
Michael Zolotukhin
3a7d55b623
[Unroll] Don't crash when simplified branch condition is undef.
...
llvm-svn: 243544
2015-07-29 18:10:29 +00:00
Michael Zolotukhin
a2069d36ce
Rename test full-unroll-bad-geps.ll to full-unroll-crashers.ll.
...
No reason to limit it only to GEP-related crashes. More tests are to
come here.
llvm-svn: 243543
2015-07-29 18:10:23 +00:00