This function is shared between both implementations. I am not sure if
Utils/Local.h is the best place though.
Details
Details
Diff Detail
Diff Detail
Paths 
  |  Differential  D47337  
[GVN,NewGVN] Move patchReplacementInstruction to Utils/Local.h ClosedPublic Authored by fhahn on May 24 2018, 10:43 AM. 
Details Summary This function is shared between both implementations. I am not sure if 
Diff Detail Event Timelinefhahn added a child revision: D47339: [GVN,NewGVN] Keep nonnull if K does not move..Jul 30 2018, 3:03 PM This revision is now accepted and ready to land.Aug 6 2018, 12:19 AM Closed by commit rL339138: [GVN,NewGVN] Move patchReplacementInstruction to Utils/Local.h (authored by fhahn).  ·  Explain WhyAug 7 2018, 6:28 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 148442 include/llvm/Analysis/Utils/Local.h
 lib/Transforms/Scalar/GVN.cpp
 lib/Transforms/Scalar/NewGVN.cpp
 lib/Transforms/Utils/Local.cpp
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||