[SCEVExpander] GetOptimalInsertionPointForCastOf(): gracefully handle Constant's
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Apr 2021 14:36:20 +0000 (17:36 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Apr 2021 15:38:39 +0000 (18:38 +0300)
commit442c408e0e4a4d794752e710a362a5449d585432
treeea4077b108e8d113241b06fead13c5a8084f2593
parentb8a3705896d254682a4ba36dd79a436ec4a917d4
[SCEVExpander] GetOptimalInsertionPointForCastOf(): gracefully handle Constant's

I guess this case hasn't come up thus far, and i'm not sure if it can
really happen for the existing usages, thus no test in *this* commit.

But, the following commit adds test coverage,
there we'd expirience a crash without this fix.
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp