Displaying 1 result from an estimated 1 matches for "maydividebyzero".
2018 Sep 25
2
Unsafe floating point operation (FDiv & FRem) in LoopVectorizer
...->blockNeedsPredication(I->getParent()))
return false;
switch(I->getOpcode()) {
default:
break;
case Instruction::UDiv: <- Floating point operations not considered i.e FDiv & FRem
case Instruction::SDiv:
case Instruction::SRem:
case Instruction::URem:
return mayDivideByZero(*I);
}
I don't have any background of this function, but I feel this should consider FDiv & FRem instructions as well.
If there is no objection to it, will do a patch.
Thanks,
Ashutosh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.o...