[llvm-commits] [llvm] r108351 - /llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Duncan Sands baldrick at free.fr
Thu Jul 15 00:12:05 PDT 2010


Hi Owen,

> This allows us to eliminate the short circuit in (x&1)&&(x&2).

testcase?

> +  Instruction *BonusInst = 0;
> +  if (&*FrontIt != Cond&&
> +      (*FrontIt).hasOneUse()&&  *(*FrontIt).use_begin() == Cond&&
> +      (*FrontIt).isSafeToSpeculativelyExecute()&&
> +      !(*FrontIt).mayReadFromMemory()) {

Why the check on mayReadFromMemory?

Ciao,

Duncan.



More information about the llvm-commits mailing list