[PATCH] Extend EarlyCSE to handle basic cases from JumpThreading and CVP

Daniel Berlin dberlin at dberlin.org
Wed May 13 15:41:38 PDT 2015


================
Comment at: lib/Transforms/Scalar/EarlyCSE.cpp:490
@@ +489,3 @@
+                  ToUpdate.push_back(IU);
+            for (Instruction *UserI : ToUpdate) {
+              DEBUG(dbgs() << "EarlyCSE CVP: Replace dominated use of '"
----------------
Can you common this part with GVN's replaceAllDominatedUsesWith?

(IE just move that function somewhere common and use it?)

http://reviews.llvm.org/D9763

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list