[NFC][LSR] Add test case that from https://reviews.llvm.org/D98147#2623549
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 13 Mar 2021 08:27:48 +0000 (11:27 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 13 Mar 2021 13:05:33 +0000 (16:05 +0300)
commit23d591efae68604a8620cbb1a7755eee0279290e
tree83d67cc272eb07da4dc0d07c2b2b887b97b1af97
parent2468fdd9af361cb46d02d00a52e87067e7078127
[NFC][LSR] Add test case that from https://reviews.llvm.org/D98147#2623549

With that patch, this test fails with an assertion
```
opt: /repositories/llvm-project/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:5169: BasicBlock::iterator (anonymous namespace)::LSRInstance::AdjustInsertPositionForExpand(BasicBlock::iterator, const (anonymous namespace)::LSRFixup &, const (anonymous namespace)::LSRUse &, llvm::SCEVExpander &) const: Assertion `!isa<PHINode>(LowestIP) && !LowestIP->isEHPad() && !isa<DbgInfoIntrinsic>(LowestIP) && "Insertion point must be a normal instruction"' failed.
```
llvm/test/Transforms/LoopStrengthReduce/X86/eh-insertion-point.ll [new file with mode: 0644]