[llvm-bugs] [Bug 25445] New: [WinEH] LoopStrengthReduce crashes in the presence of catchpads w/ phis
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Nov 7 19:57:03 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25445
Bug ID: 25445
Summary: [WinEH] LoopStrengthReduce crashes in the presence of
catchpads w/ phis
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
consider:
void f(int *);
void g(int *b, int *c) {
int *e = b;
try {
try {
int *d = b;
for (;; ++d) f(d);
} catch (...) {
}
e = c;
f(c);
} catch (...) {
f(e);
}
}
reproduces with:
clang -cc1 -triple i686-pc-windows-msvc18.0.0 -emit-obj -fcxx-exceptions
-fexceptions -O2
crashes in:
LoopStrengthReduce.cpp:4425: BasicBlock::iterator <anonymous
namespace>::LSRInstance::AdjustInsertPositionForExpand(BasicBlock::iterator,
const <anonymous>::LSRFixup &, const <anonymous>::LSRUse &, llvm::SCEVExpander
&) const: Assertion `!isa<PHINode>(LowestIP) && !LowestIP->isEHPad() &&
!isa<DbgInfoIntrinsic>(LowestIP) && "Insertion point must be a normal
instruction"' failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151108/6a8f238c/attachment.html>
More information about the llvm-bugs
mailing list