From: Sergey Kachkov Date: Mon, 16 Jan 2023 12:13:17 +0000 (+0300) Subject: Revert "[GVN] Refactor handling of pointer-select in GVN pass" X-Git-Tag: upstream/17.0.6~20817 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=868abc471d1060175f71d2749badd864b1ba4f92;p=platform%2Fupstream%2Fllvm.git Revert "[GVN] Refactor handling of pointer-select in GVN pass" This reverts commit fc7cdaa373308ce3d72218b4d80101ae19850a6c. --- diff --git a/llvm/include/llvm/Analysis/MemoryDependenceAnalysis.h b/llvm/include/llvm/Analysis/MemoryDependenceAnalysis.h index b99807a..24b4673 100644 --- a/llvm/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/llvm/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -79,10 +79,6 @@ class MemDepResult { /// the calls are the same. Def, - /// This marker indicates that the query has dependency from select - /// instruction. - Select, - /// This marker indicates that the query has no known dependency in the /// specified block. /// @@ -110,7 +106,6 @@ class MemDepResult { DepType, PointerSumTypeMember, PointerSumTypeMember, PointerSumTypeMember, - PointerSumTypeMember, PointerSumTypeMember>>; ValueTy Value; @@ -129,9 +124,6 @@ public: assert(Inst && "Clobber requires inst"); return MemDepResult(ValueTy::create(Inst)); } - static MemDepResult getSelect(Instruction *Inst) { - return MemDepResult(ValueTy::create(); } - - /// Tests if this MemDepResult represents a local query (Clobber/Def/Select). - bool isLocal() const { return isClobber() || isDef() || isSelect(); } - /// Tests if this MemDepResult represents a query that is transparent to the /// start of the block, but where a non-local hasn't been done. bool isNonLocal() const { @@ -185,8 +170,6 @@ public: return Value.cast(); case Def: return Value.cast(); - case Select: - return Value.cast