[PATCH] D16622: Value: Provide a shortcut in stripPointerCastsAndOffsets()
    Chandler Carruth via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jan 26 20:24:19 PST 2016
    
    
  
chandlerc added a comment.
Ugh. It's pretty sad that the optimizer doesn't fix this.
================
Comment at: lib/IR/Value.cpp:424
@@ -423,1 +423,3 @@
 template <PointerStripKind StripKind>
+static Value *stripOne(Value *V) {
+  if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) {
----------------
Maybe use a lambda instead?
Repository:
  rL LLVM
http://reviews.llvm.org/D16622
    
    
More information about the llvm-commits
mailing list