Displaying 5 results from an estimated 5 matches for "getsinglepredecessor".
2012 Dec 24
0
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
This looks like a bug in simplifycfg. We should preserve lifetime
intrinsics due to the reasons I described.
The code in //lib/Transforms/Utils/Local.cpp:
if (Succ->getSinglePredecessor()) {
// BB is the only predecessor of Succ, so Succ will end up with exactly
// the same predecessors BB had.
// Copy over any phi, debug or lifetime instruction.
BB->getTerminator()->eraseFromParent();
Succ->getInstList().splice(Succ->getFirstNonPHI(), BB->getIn...
2012 Dec 17
2
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
Hi!
I'm working on ASan option that uses llvm.lifetime intrinsics to detect
use-after-scope bugs. In short, the idea is to
insert calls into ASan runtime that would mark the memory as "addressable"
or "unaddressable".
I see the following problem with the following "trivial" basic block:
for.body.lr.ph.i: ; preds = %for.body.i310
2012 Dec 25
3
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
On 24 December 2012 04:02, Alexey Samsonov <samsonov at google.com> wrote:
> This looks like a bug in simplifycfg. We should preserve lifetime intrinsics
> due to the reasons I described.
> The code in //lib/Transforms/Utils/Local.cpp:
>
> if (Succ->getSinglePredecessor()) {
> // BB is the only predecessor of Succ, so Succ will end up with exactly
> // the same predecessors BB had.
>
> // Copy over any phi, debug or lifetime instruction.
> BB->getTerminator()->eraseFromParent();
> Succ->getInstList().splice(Succ->g...
2009 Sep 01
1
[LLVMdev] [llvm-commits] SSI Patch
I tried to make 5 separate patches, but as they are constructive, they
had information from the last one. So I will post one by one as it gets
on the tree.
1. We had a function isUsedInTerminator that tested if a comparator was
used in the terminator of its parent BasicBlock. This is wrong because a
comparator can be created in a BasicBlock and used in the terminator of
other BasicBlock, and
2012 Dec 25
0
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
...December 2012 04:02, Alexey Samsonov <samsonov at google.com> wrote:
> > This looks like a bug in simplifycfg. We should preserve lifetime
> intrinsics
> > due to the reasons I described.
> > The code in //lib/Transforms/Utils/Local.cpp:
> >
> > if (Succ->getSinglePredecessor()) {
> > // BB is the only predecessor of Succ, so Succ will end up with
> exactly
> > // the same predecessors BB had.
> >
> > // Copy over any phi, debug or lifetime instruction.
> > BB->getTerminator()->eraseFromParent();
> > Succ-...