[PATCH] D22545: Make GVN Hoisting obey optnone/bisect

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 16:04:40 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL276048: Make GVN Hoisting obey optnone/bisect. (authored by probinson).

Changed prior to commit:
  https://reviews.llvm.org/D22545?vs=64579&id=64588#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D22545

Files:
  llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
  llvm/trunk/test/Feature/optnone-opt.ll

Index: llvm/trunk/test/Feature/optnone-opt.ll
===================================================================
--- llvm/trunk/test/Feature/optnone-opt.ll
+++ llvm/trunk/test/Feature/optnone-opt.ll
@@ -41,6 +41,7 @@
 ; OPT-O1-DAG: Skipping pass 'Combine redundant instructions'
 ; OPT-O1-DAG: Skipping pass 'Dead Store Elimination'
 ; OPT-O1-DAG: Skipping pass 'Early CSE'
+; OPT-O1-DAG: Skipping pass 'Early GVN Hoisting of Expressions'
 ; OPT-O1-DAG: Skipping pass 'Jump Threading'
 ; OPT-O1-DAG: Skipping pass 'MemCpy Optimization'
 ; OPT-O1-DAG: Skipping pass 'Reassociate expressions'
Index: llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
+++ llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
@@ -766,6 +766,8 @@
   }
 
   bool runOnFunction(Function &F) override {
+    if (skipFunction(F))
+      return false;
     auto &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
     auto &AA = getAnalysis<AAResultsWrapperPass>().getAAResults();
     auto &MD = getAnalysis<MemoryDependenceWrapperPass>().getMemDep();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22545.64588.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160719/c5b59144/attachment.bin>


More information about the llvm-commits mailing list