[Analysis] update to use new fast-math API - isFast()
authorSanjay Patel <spatel@rotateright.com>
Mon, 6 Nov 2017 16:52:31 +0000 (16:52 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 6 Nov 2017 16:52:31 +0000 (16:52 +0000)
llvm-svn: 317491

polly/lib/Analysis/ScopBuilder.cpp

index c089bee..0de97fa 100644 (file)
@@ -1151,7 +1151,7 @@ static MemoryAccess::ReductionType getReductionType(const BinaryOperator *BinOp,
     return MemoryAccess::RT_NONE;
   switch (BinOp->getOpcode()) {
   case Instruction::FAdd:
-    if (!BinOp->hasUnsafeAlgebra())
+    if (!BinOp->isFast())
       return MemoryAccess::RT_NONE;
     // Fall through
   case Instruction::Add:
@@ -1163,7 +1163,7 @@ static MemoryAccess::ReductionType getReductionType(const BinaryOperator *BinOp,
   case Instruction::And:
     return MemoryAccess::RT_BAND;
   case Instruction::FMul:
-    if (!BinOp->hasUnsafeAlgebra())
+    if (!BinOp->isFast())
       return MemoryAccess::RT_NONE;
     // Fall through
   case Instruction::Mul: