[llvm] ba2dd12 - [InstCombine] Remove CreateOverflowTuple (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 07:08:11 PDT 2021


Author: Kazu Hirata
Date: 2021-07-21T07:07:53-07:00
New Revision: ba2dd12d4fb385e12bc6b4d04cab9083a4f183b7

URL: https://github.com/llvm/llvm-project/commit/ba2dd12d4fb385e12bc6b4d04cab9083a4f183b7
DIFF: https://github.com/llvm/llvm-project/commit/ba2dd12d4fb385e12bc6b4d04cab9083a4f183b7.diff

LOG: [InstCombine] Remove CreateOverflowTuple (NFC)

The last use was removed On Jun 3, 2020 in commit
2a6c871596ce8bdd23501a96fd22f0f16d3cfcad.

Added: 
    

Modified: 
    llvm/lib/Transforms/InstCombine/InstCombineInternal.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index 6d0690dde9e02..8f3b5354820bc 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -426,16 +426,6 @@ class LLVM_LIBRARY_VISIBILITY InstCombinerImpl final
     U = NewValue;
   }
 
-  /// Creates a result tuple for an overflow intrinsic \p II with a given
-  /// \p Result and a constant \p Overflow value.
-  Instruction *CreateOverflowTuple(IntrinsicInst *II, Value *Result,
-                                   Constant *Overflow) {
-    Constant *V[] = {UndefValue::get(Result->getType()), Overflow};
-    StructType *ST = cast<StructType>(II->getType());
-    Constant *Struct = ConstantStruct::get(ST, V);
-    return InsertValueInst::Create(Struct, Result, 0);
-  }
-
   /// Create and insert the idiom we use to indicate a block is unreachable
   /// without having to rewrite the CFG from within InstCombine.
   void CreateNonTerminatorUnreachable(Instruction *InsertAt) {


        


More information about the llvm-commits mailing list