Index: llvm/include/llvm/Transforms/IPO/Attributor.h =================================================================== --- llvm/include/llvm/Transforms/IPO/Attributor.h +++ llvm/include/llvm/Transforms/IPO/Attributor.h @@ -101,6 +101,7 @@ #include "llvm/ADT/SCCIterator.h" #include "llvm/ADT/SetVector.h" #include "llvm/Analysis/AliasAnalysis.h" +#include "llvm/Analysis/CFG.h" #include "llvm/Analysis/CGSCCPassManager.h" #include "llvm/Analysis/CallGraph.h" #include "llvm/Analysis/InlineCost.h" @@ -2071,14 +2072,14 @@ /// determines (and caches) reachability. bool isAssumedReachable(const Instruction *From, const Instruction *To) const { - return true; + return isPotentiallyReachable(From,To); } /// Returns true if 'From' instruction is known to reach, 'To' instruction. /// Users should provide two positions they are interested in, and the class /// determines (and caches) reachability. bool isKnownReachable(const Instruction *From, const Instruction *To) const { - return true; + return isPotentiallyReachable(From,To); } /// Return an IR position, see struct IRPosition.