[llvm] 6ee845d - [IR] Remove handling for removed ConstantExprs (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 06:03:29 PDT 2024


Author: Nikita Popov
Date: 2024-05-31T15:03:22+02:00
New Revision: 6ee845d2401b7f0e5f385fc0e3a8cb44afd667dc

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

LOG: [IR] Remove handling for removed ConstantExprs (NFC)

Added: 
    

Modified: 
    llvm/lib/IR/Constants.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index 119fcb4fa0346..a53115f2afdf9 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -3434,14 +3434,6 @@ Instruction *ConstantExpr::getAsInstruction() const {
 
   switch (getOpcode()) {
   case Instruction::Trunc:
-  case Instruction::ZExt:
-  case Instruction::SExt:
-  case Instruction::FPTrunc:
-  case Instruction::FPExt:
-  case Instruction::UIToFP:
-  case Instruction::SIToFP:
-  case Instruction::FPToUI:
-  case Instruction::FPToSI:
   case Instruction::PtrToInt:
   case Instruction::IntToPtr:
   case Instruction::BitCast:


        


More information about the llvm-commits mailing list