[PATCH] [SeparateConstOffsetFromGEP] garbage-collect intermediate	instructions
    Jingyue Wu 
    jingyue at google.com
       
    Mon Apr 20 16:18:19 PDT 2015
    
    
  
Added a `-gep-reassociate-verify-no-dead-code` flag to detect dead code. This flag is supposed to be used in test only.
================
Comment at: test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep.ll:1
@@ -1,2 +1,2 @@
-; RUN: opt < %s -separate-const-offset-from-gep -dce -S | FileCheck %s
+; RUN: opt < %s -separate-const-offset-from-gep -S | FileCheck %s
 
----------------
meheff wrote:
> Should any extra checks be added to verify we're removing dead code?
Good catch! Fixed by cloning `BO` even if it can be reused.
http://reviews.llvm.org/D9096
EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
    
    
More information about the llvm-commits
mailing list