[llvm-bugs] [Bug 25824] New: incorrect saving/restoring points in shrink-wrap
llvm-bugs at lists.llvm.org
Mon Dec 14 11:46:47 PST 2015
Bug ID: 25824
Summary: incorrect saving/restoring points in shrink-wrap
OS: Windows NT
Assignee: unassignedbugs at nondot.org
Reporter: weimingz at codeaurora.org
CC: llvm-bugs at lists.llvm.org
Given a loop, like
(BB1)Def of CSR \
(BB2) Use of CSR
Since HeadBB dominates both BB1 and BB2, and HeadBB post-doms BB1 and BB2,
eventually, it returning HeadBB as saving and restoring point. As a result,
Epilog/Prolog Inserter inserts a pair of push/pop in HeadBB, which in
Domination only guarantees the def in dominator will reach it's descendants,
but it doesn't guarantee the value in HeadBB is before the change made in BB1.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs