search for: storeofload

Displaying 5 results from an estimated 5 matches for "storeofload".

Did you mean: storeload
2009 Sep 02
2
[LLVMdev] [PATCH] PR2218
...if (!Repl) > + Repl = SI->getPointerOperand(); > + else if (Repl != SI->getPointerOperand()) > + return false; > + > + } else > + return false; > + } > > Please do something like this: > > if (!L->hasOneUse()) return false; > StoreInst *StoreOfLoad = dyn_cast<StoreInst>(L->use_back()); > if (StoreOfLoad == 0 || ...) > ... > > > Actually, I see now that the code actually allows multiple stores as > long as they are to the same pointer. That also seems reasonable to > me, but please update the comment above th...
2009 Sep 02
0
[LLVMdev] [PATCH] PR2218
...he size of the object, you can just pass in 1 for both sizes. Please put a comment above the call to AA.alias explaining why you require mustalias here. + // Look for a replacement for our pointer. If more than one found, exit. + if (!L->hasOneUse()) + return false; + StoreInst *StoreOfLoad = dyn_cast<StoreInst>(L->use_back()); + if (!StoreOfLoad) + return false; Please do these check before the MemDep query, they are very cheap and will make the optimization run faster (by avoiding queries). I'm pretty sure that there is still a legality check missing here....
2009 Sep 02
1
[LLVMdev] [PATCH] PR2218
...her." :-) > Please put a comment above the call to AA.alias explaining why you > require mustalias here. > > > > + // Look for a replacement for our pointer. If more than one > found, exit. > + if (!L->hasOneUse()) > + return false; > + StoreInst *StoreOfLoad = dyn_cast<StoreInst>(L->use_back()); > + if (!StoreOfLoad) > + return false; > > Please do these check before the MemDep query, they are very cheap > and will make the optimization run faster (by avoiding queries). > > > > I'm pretty sure that there is...
2009 Aug 07
0
[LLVMdev] [PATCH] PR2218
...)) { + if (SI->isVolatile()) + return false; + + if (!Repl) + Repl = SI->getPointerOperand(); + else if (Repl != SI->getPointerOperand()) + return false; + + } else + return false; + } Please do something like this: if (!L->hasOneUse()) return false; StoreInst *StoreOfLoad = dyn_cast<StoreInst>(L->use_back()); if (StoreOfLoad == 0 || ...) ... Actually, I see now that the code actually allows multiple stores as long as they are to the same pointer. That also seems reasonable to me, but please update the comment above the loop to make it really clear...
2009 Jul 25
2
[LLVMdev] [PATCH] PR2218
Hello, Sorry for my stupid mistakes. I hope that everything is fine now. This patch fixes PR2218. There are no loads in example, however "instcombine" changes memcpy() into store/load. Regards, Jakub Staszak -------------- next part -------------- A non-text attachment was scrubbed... Name: pr2218-2.patch Type: application/octet-stream Size: 6525 bytes Desc: not available URL: