[polly] r317491 - [Analysis] update to use new fast-math API - isFast()
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 6 08:52:31 PST 2017
Author: spatel
Date: Mon Nov 6 08:52:31 2017
New Revision: 317491
URL: http://llvm.org/viewvc/llvm-project?rev=317491&view=rev
Log:
[Analysis] update to use new fast-math API - isFast()
Modified:
polly/trunk/lib/Analysis/ScopBuilder.cpp
Modified: polly/trunk/lib/Analysis/ScopBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopBuilder.cpp?rev=317491&r1=317490&r2=317491&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopBuilder.cpp (original)
+++ polly/trunk/lib/Analysis/ScopBuilder.cpp Mon Nov 6 08:52:31 2017
@@ -1151,7 +1151,7 @@ static MemoryAccess::ReductionType getRe
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 getRe
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:
More information about the llvm-commits
mailing list