[llvm-commits] [llvm] r108351 - /llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
Owen Anderson
resistor at mac.com
Thu Jul 15 07:59:37 PDT 2010
On Jul 15, 2010, at 12:12 AM, Duncan Sands wrote:
>
>> + Instruction *BonusInst = 0;
>> + if (&*FrontIt != Cond&&
>> + (*FrontIt).hasOneUse()&& *(*FrontIt).use_begin() == Cond&&
>> + (*FrontIt).isSafeToSpeculativelyExecute()&&
>> + !(*FrontIt).mayReadFromMemory()) {
>
> Why the check on mayReadFromMemory?
We don't want to speculatively execute a load before a null check.
--Owen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100715/9a6b2913/attachment.html>
More information about the llvm-commits
mailing list