Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 1 | //===-- Local.cpp - Functions to perform local transformations ------------===// |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 2 | // |
John Criswell | b576c94 | 2003-10-20 19:43:21 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 7 | // |
John Criswell | b576c94 | 2003-10-20 19:43:21 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 9 | // |
| 10 | // This family of functions perform various local transformations to the |
| 11 | // program. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #include "llvm/Transforms/Utils/Local.h" |
Chris Lattner | 81ebc30 | 2004-01-12 18:35:03 +0000 | [diff] [blame] | 16 | #include "llvm/Constants.h" |
Devang Patel | c79e118 | 2009-03-06 00:19:37 +0000 | [diff] [blame] | 17 | #include "llvm/GlobalVariable.h" |
Chris Lattner | c5f52e6 | 2005-09-26 05:27:10 +0000 | [diff] [blame] | 18 | #include "llvm/DerivedTypes.h" |
Chris Lattner | 7822c2a | 2004-01-12 19:56:36 +0000 | [diff] [blame] | 19 | #include "llvm/Instructions.h" |
Chris Lattner | cf11035 | 2004-06-11 06:16:23 +0000 | [diff] [blame] | 20 | #include "llvm/Intrinsics.h" |
Chris Lattner | 741c0ae | 2007-12-29 00:59:12 +0000 | [diff] [blame] | 21 | #include "llvm/IntrinsicInst.h" |
Chris Lattner | cbbc6b7 | 2005-10-27 16:34:00 +0000 | [diff] [blame] | 22 | #include "llvm/Analysis/ConstantFolding.h" |
Devang Patel | c79e118 | 2009-03-06 00:19:37 +0000 | [diff] [blame] | 23 | #include "llvm/Analysis/DebugInfo.h" |
Chris Lattner | 9fa038d | 2007-01-30 23:13:49 +0000 | [diff] [blame] | 24 | #include "llvm/Target/TargetData.h" |
Chris Lattner | c5f52e6 | 2005-09-26 05:27:10 +0000 | [diff] [blame] | 25 | #include "llvm/Support/GetElementPtrTypeIterator.h" |
| 26 | #include "llvm/Support/MathExtras.h" |
Chris Lattner | abbc2dd | 2003-12-19 05:56:28 +0000 | [diff] [blame] | 27 | using namespace llvm; |
Brian Gaeke | d0fde30 | 2003-11-11 22:41:34 +0000 | [diff] [blame] | 28 | |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 29 | //===----------------------------------------------------------------------===// |
Chris Lattner | 3481f24 | 2008-11-27 22:57:53 +0000 | [diff] [blame] | 30 | // Local constant propagation. |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 31 | // |
| 32 | |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 33 | // ConstantFoldTerminator - If a terminator instruction is predicated on a |
| 34 | // constant value, convert it into an unconditional branch to the constant |
| 35 | // destination. |
| 36 | // |
Chris Lattner | abbc2dd | 2003-12-19 05:56:28 +0000 | [diff] [blame] | 37 | bool llvm::ConstantFoldTerminator(BasicBlock *BB) { |
Chris Lattner | 76ae344 | 2002-05-21 20:04:50 +0000 | [diff] [blame] | 38 | TerminatorInst *T = BB->getTerminator(); |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 39 | |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 40 | // Branch - See if we are conditional jumping on constant |
| 41 | if (BranchInst *BI = dyn_cast<BranchInst>(T)) { |
| 42 | if (BI->isUnconditional()) return false; // Can't optimize uncond branch |
Gabor Greif | c1bb13f | 2009-01-30 18:21:13 +0000 | [diff] [blame] | 43 | BasicBlock *Dest1 = BI->getSuccessor(0); |
| 44 | BasicBlock *Dest2 = BI->getSuccessor(1); |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 45 | |
Zhou Sheng | 6b6b6ef | 2007-01-11 12:24:14 +0000 | [diff] [blame] | 46 | if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) { |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 47 | // Are we branching on constant? |
| 48 | // YES. Change to unconditional branch... |
Reid Spencer | 579dca1 | 2007-01-12 04:24:46 +0000 | [diff] [blame] | 49 | BasicBlock *Destination = Cond->getZExtValue() ? Dest1 : Dest2; |
| 50 | BasicBlock *OldDest = Cond->getZExtValue() ? Dest2 : Dest1; |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 51 | |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 52 | //cerr << "Function: " << T->getParent()->getParent() |
| 53 | // << "\nRemoving branch from " << T->getParent() |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 54 | // << "\n\nTo: " << OldDest << endl; |
| 55 | |
| 56 | // Let the basic block know that we are letting go of it. Based on this, |
| 57 | // it will adjust it's PHI nodes. |
| 58 | assert(BI->getParent() && "Terminator not inserted in block!"); |
| 59 | OldDest->removePredecessor(BI->getParent()); |
| 60 | |
| 61 | // Set the unconditional destination, and change the insn to be an |
| 62 | // unconditional branch. |
| 63 | BI->setUnconditionalDest(Destination); |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 64 | return true; |
Chris Lattner | 342a9d1 | 2003-08-17 19:34:55 +0000 | [diff] [blame] | 65 | } else if (Dest2 == Dest1) { // Conditional branch to same location? |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 66 | // This branch matches something like this: |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 67 | // br bool %cond, label %Dest, label %Dest |
| 68 | // and changes it into: br label %Dest |
| 69 | |
| 70 | // Let the basic block know that we are letting go of one copy of it. |
| 71 | assert(BI->getParent() && "Terminator not inserted in block!"); |
| 72 | Dest1->removePredecessor(BI->getParent()); |
| 73 | |
| 74 | // Change a conditional branch to unconditional. |
| 75 | BI->setUnconditionalDest(Dest1); |
| 76 | return true; |
| 77 | } |
Chris Lattner | 10b1f5a | 2003-08-17 20:21:14 +0000 | [diff] [blame] | 78 | } else if (SwitchInst *SI = dyn_cast<SwitchInst>(T)) { |
| 79 | // If we are switching on a constant, we can convert the switch into a |
| 80 | // single branch instruction! |
| 81 | ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition()); |
| 82 | BasicBlock *TheOnlyDest = SI->getSuccessor(0); // The default dest |
Chris Lattner | 7d6c24c | 2003-08-23 23:18:19 +0000 | [diff] [blame] | 83 | BasicBlock *DefaultDest = TheOnlyDest; |
| 84 | assert(TheOnlyDest == SI->getDefaultDest() && |
| 85 | "Default destination is not successor #0?"); |
Chris Lattner | 694e37f | 2003-08-17 19:41:53 +0000 | [diff] [blame] | 86 | |
Chris Lattner | 10b1f5a | 2003-08-17 20:21:14 +0000 | [diff] [blame] | 87 | // Figure out which case it goes to... |
| 88 | for (unsigned i = 1, e = SI->getNumSuccessors(); i != e; ++i) { |
| 89 | // Found case matching a constant operand? |
| 90 | if (SI->getSuccessorValue(i) == CI) { |
| 91 | TheOnlyDest = SI->getSuccessor(i); |
| 92 | break; |
| 93 | } |
Chris Lattner | 694e37f | 2003-08-17 19:41:53 +0000 | [diff] [blame] | 94 | |
Chris Lattner | 7d6c24c | 2003-08-23 23:18:19 +0000 | [diff] [blame] | 95 | // Check to see if this branch is going to the same place as the default |
| 96 | // dest. If so, eliminate it as an explicit compare. |
| 97 | if (SI->getSuccessor(i) == DefaultDest) { |
| 98 | // Remove this entry... |
| 99 | DefaultDest->removePredecessor(SI->getParent()); |
| 100 | SI->removeCase(i); |
| 101 | --i; --e; // Don't skip an entry... |
| 102 | continue; |
| 103 | } |
| 104 | |
Chris Lattner | 10b1f5a | 2003-08-17 20:21:14 +0000 | [diff] [blame] | 105 | // Otherwise, check to see if the switch only branches to one destination. |
| 106 | // We do this by reseting "TheOnlyDest" to null when we find two non-equal |
| 107 | // destinations. |
| 108 | if (SI->getSuccessor(i) != TheOnlyDest) TheOnlyDest = 0; |
Chris Lattner | 694e37f | 2003-08-17 19:41:53 +0000 | [diff] [blame] | 109 | } |
| 110 | |
Chris Lattner | 10b1f5a | 2003-08-17 20:21:14 +0000 | [diff] [blame] | 111 | if (CI && !TheOnlyDest) { |
| 112 | // Branching on a constant, but not any of the cases, go to the default |
| 113 | // successor. |
| 114 | TheOnlyDest = SI->getDefaultDest(); |
| 115 | } |
| 116 | |
| 117 | // If we found a single destination that we can fold the switch into, do so |
| 118 | // now. |
| 119 | if (TheOnlyDest) { |
| 120 | // Insert the new branch.. |
Gabor Greif | 051a950 | 2008-04-06 20:25:17 +0000 | [diff] [blame] | 121 | BranchInst::Create(TheOnlyDest, SI); |
Chris Lattner | 10b1f5a | 2003-08-17 20:21:14 +0000 | [diff] [blame] | 122 | BasicBlock *BB = SI->getParent(); |
| 123 | |
| 124 | // Remove entries from PHI nodes which we no longer branch to... |
| 125 | for (unsigned i = 0, e = SI->getNumSuccessors(); i != e; ++i) { |
| 126 | // Found case matching a constant operand? |
| 127 | BasicBlock *Succ = SI->getSuccessor(i); |
| 128 | if (Succ == TheOnlyDest) |
| 129 | TheOnlyDest = 0; // Don't modify the first branch to TheOnlyDest |
| 130 | else |
| 131 | Succ->removePredecessor(BB); |
| 132 | } |
| 133 | |
| 134 | // Delete the old switch... |
| 135 | BB->getInstList().erase(SI); |
| 136 | return true; |
| 137 | } else if (SI->getNumSuccessors() == 2) { |
| 138 | // Otherwise, we can fold this switch into a conditional branch |
| 139 | // instruction if it has only one non-default destination. |
Reid Spencer | e4d87aa | 2006-12-23 06:05:41 +0000 | [diff] [blame] | 140 | Value *Cond = new ICmpInst(ICmpInst::ICMP_EQ, SI->getCondition(), |
| 141 | SI->getSuccessorValue(1), "cond", SI); |
Chris Lattner | 10b1f5a | 2003-08-17 20:21:14 +0000 | [diff] [blame] | 142 | // Insert the new branch... |
Gabor Greif | 051a950 | 2008-04-06 20:25:17 +0000 | [diff] [blame] | 143 | BranchInst::Create(SI->getSuccessor(1), SI->getSuccessor(0), Cond, SI); |
Chris Lattner | 10b1f5a | 2003-08-17 20:21:14 +0000 | [diff] [blame] | 144 | |
| 145 | // Delete the old switch... |
Dan Gohman | 1adec83 | 2008-06-21 22:08:46 +0000 | [diff] [blame] | 146 | SI->eraseFromParent(); |
Chris Lattner | 10b1f5a | 2003-08-17 20:21:14 +0000 | [diff] [blame] | 147 | return true; |
| 148 | } |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 149 | } |
| 150 | return false; |
| 151 | } |
| 152 | |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 153 | |
| 154 | //===----------------------------------------------------------------------===// |
| 155 | // Local dead code elimination... |
| 156 | // |
| 157 | |
Chris Lattner | 3481f24 | 2008-11-27 22:57:53 +0000 | [diff] [blame] | 158 | /// isInstructionTriviallyDead - Return true if the result produced by the |
| 159 | /// instruction is not used, and the instruction has no side effects. |
| 160 | /// |
Chris Lattner | abbc2dd | 2003-12-19 05:56:28 +0000 | [diff] [blame] | 161 | bool llvm::isInstructionTriviallyDead(Instruction *I) { |
Chris Lattner | ec710c5 | 2005-05-06 05:27:34 +0000 | [diff] [blame] | 162 | if (!I->use_empty() || isa<TerminatorInst>(I)) return false; |
Jeff Cohen | 00b16889 | 2005-07-27 06:12:32 +0000 | [diff] [blame] | 163 | |
Dale Johannesen | 127a793 | 2009-03-03 23:30:00 +0000 | [diff] [blame] | 164 | // We don't want debug info removed by anything this general. |
| 165 | if (isa<DbgInfoIntrinsic>(I)) return false; |
| 166 | |
Chris Lattner | 741c0ae | 2007-12-29 00:59:12 +0000 | [diff] [blame] | 167 | if (!I->mayWriteToMemory()) |
| 168 | return true; |
Chris Lattner | ec710c5 | 2005-05-06 05:27:34 +0000 | [diff] [blame] | 169 | |
Chris Lattner | 741c0ae | 2007-12-29 00:59:12 +0000 | [diff] [blame] | 170 | // Special case intrinsics that "may write to memory" but can be deleted when |
| 171 | // dead. |
| 172 | if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) |
| 173 | // Safe to delete llvm.stacksave if dead. |
| 174 | if (II->getIntrinsicID() == Intrinsic::stacksave) |
| 175 | return true; |
| 176 | |
Chris Lattner | ec710c5 | 2005-05-06 05:27:34 +0000 | [diff] [blame] | 177 | return false; |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 178 | } |
| 179 | |
Chris Lattner | 3481f24 | 2008-11-27 22:57:53 +0000 | [diff] [blame] | 180 | /// RecursivelyDeleteTriviallyDeadInstructions - If the specified value is a |
| 181 | /// trivially dead instruction, delete it. If that makes any of its operands |
| 182 | /// trivially dead, delete them too, recursively. |
Chris Lattner | 4f02c74 | 2008-11-27 23:14:34 +0000 | [diff] [blame] | 183 | /// |
| 184 | /// If DeadInst is specified, the vector is filled with the instructions that |
| 185 | /// are actually deleted. |
| 186 | void llvm::RecursivelyDeleteTriviallyDeadInstructions(Value *V, |
| 187 | SmallVectorImpl<Instruction*> *DeadInst) { |
Chris Lattner | 3481f24 | 2008-11-27 22:57:53 +0000 | [diff] [blame] | 188 | Instruction *I = dyn_cast<Instruction>(V); |
Chris Lattner | 7605730 | 2008-11-28 01:20:46 +0000 | [diff] [blame] | 189 | if (!I || !I->use_empty() || !isInstructionTriviallyDead(I)) |
| 190 | return; |
Chris Lattner | 3481f24 | 2008-11-27 22:57:53 +0000 | [diff] [blame] | 191 | |
Chris Lattner | 7605730 | 2008-11-28 01:20:46 +0000 | [diff] [blame] | 192 | SmallVector<Instruction*, 16> DeadInsts; |
| 193 | DeadInsts.push_back(I); |
Chris Lattner | 3481f24 | 2008-11-27 22:57:53 +0000 | [diff] [blame] | 194 | |
Chris Lattner | 7605730 | 2008-11-28 01:20:46 +0000 | [diff] [blame] | 195 | while (!DeadInsts.empty()) { |
| 196 | I = DeadInsts.back(); |
| 197 | DeadInsts.pop_back(); |
Chris Lattner | 2872177 | 2008-11-28 00:58:15 +0000 | [diff] [blame] | 198 | |
Chris Lattner | 7605730 | 2008-11-28 01:20:46 +0000 | [diff] [blame] | 199 | // If the client wanted to know, tell it about deleted instructions. |
Chris Lattner | 4f02c74 | 2008-11-27 23:14:34 +0000 | [diff] [blame] | 200 | if (DeadInst) |
| 201 | DeadInst->push_back(I); |
Chris Lattner | 7605730 | 2008-11-28 01:20:46 +0000 | [diff] [blame] | 202 | |
| 203 | // Null out all of the instruction's operands to see if any operand becomes |
| 204 | // dead as we go. |
| 205 | for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) { |
| 206 | Value *OpV = I->getOperand(i); |
| 207 | I->setOperand(i, 0); |
| 208 | |
| 209 | if (!OpV->use_empty()) continue; |
| 210 | |
| 211 | // If the operand is an instruction that became dead as we nulled out the |
| 212 | // operand, and if it is 'trivially' dead, delete it in a future loop |
| 213 | // iteration. |
| 214 | if (Instruction *OpI = dyn_cast<Instruction>(OpV)) |
| 215 | if (isInstructionTriviallyDead(OpI)) |
| 216 | DeadInsts.push_back(OpI); |
| 217 | } |
| 218 | |
| 219 | I->eraseFromParent(); |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 220 | } |
Chris Lattner | 4d1e46e | 2002-05-07 18:07:59 +0000 | [diff] [blame] | 221 | } |
Chris Lattner | b29714a | 2008-11-27 07:43:12 +0000 | [diff] [blame] | 222 | |
Chris Lattner | 3481f24 | 2008-11-27 22:57:53 +0000 | [diff] [blame] | 223 | |
Chris Lattner | b29714a | 2008-11-27 07:43:12 +0000 | [diff] [blame] | 224 | //===----------------------------------------------------------------------===// |
| 225 | // Control Flow Graph Restructuring... |
| 226 | // |
| 227 | |
| 228 | /// MergeBasicBlockIntoOnlyPred - DestBB is a block with one predecessor and its |
| 229 | /// predecessor is known to have one successor (DestBB!). Eliminate the edge |
| 230 | /// between them, moving the instructions in the predecessor into DestBB and |
| 231 | /// deleting the predecessor block. |
| 232 | /// |
| 233 | void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB) { |
| 234 | // If BB has single-entry PHI nodes, fold them. |
| 235 | while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { |
| 236 | Value *NewVal = PN->getIncomingValue(0); |
| 237 | // Replace self referencing PHI with undef, it must be dead. |
| 238 | if (NewVal == PN) NewVal = UndefValue::get(PN->getType()); |
| 239 | PN->replaceAllUsesWith(NewVal); |
| 240 | PN->eraseFromParent(); |
| 241 | } |
| 242 | |
| 243 | BasicBlock *PredBB = DestBB->getSinglePredecessor(); |
| 244 | assert(PredBB && "Block doesn't have a single predecessor!"); |
| 245 | |
| 246 | // Splice all the instructions from PredBB to DestBB. |
| 247 | PredBB->getTerminator()->eraseFromParent(); |
| 248 | DestBB->getInstList().splice(DestBB->begin(), PredBB->getInstList()); |
| 249 | |
| 250 | // Anything that branched to PredBB now branches to DestBB. |
| 251 | PredBB->replaceAllUsesWith(DestBB); |
| 252 | |
| 253 | // Nuke BB. |
| 254 | PredBB->eraseFromParent(); |
| 255 | } |
Devang Patel | 4afc90d | 2009-02-10 07:00:59 +0000 | [diff] [blame] | 256 | |
| 257 | /// OnlyUsedByDbgIntrinsics - Return true if the instruction I is only used |
| 258 | /// by DbgIntrinsics. If DbgInUses is specified then the vector is filled |
| 259 | /// with the DbgInfoIntrinsic that use the instruction I. |
| 260 | bool llvm::OnlyUsedByDbgInfoIntrinsics(Instruction *I, |
| 261 | SmallVectorImpl<DbgInfoIntrinsic *> *DbgInUses) { |
| 262 | if (DbgInUses) |
| 263 | DbgInUses->clear(); |
| 264 | |
| 265 | for (Value::use_iterator UI = I->use_begin(), UE = I->use_end(); UI != UE; |
| 266 | ++UI) { |
| 267 | if (DbgInfoIntrinsic *DI = dyn_cast<DbgInfoIntrinsic>(*UI)) { |
| 268 | if (DbgInUses) |
| 269 | DbgInUses->push_back(DI); |
| 270 | } else { |
| 271 | if (DbgInUses) |
| 272 | DbgInUses->clear(); |
| 273 | return false; |
| 274 | } |
| 275 | } |
| 276 | return true; |
| 277 | } |
Devang Patel | c79e118 | 2009-03-06 00:19:37 +0000 | [diff] [blame] | 278 | |
| 279 | /// UserIsDebugInfo - Return true if U is a constant expr used by |
| 280 | /// llvm.dbg.variable or llvm.dbg.global_variable |
| 281 | bool llvm::UserIsDebugInfo(User *U) { |
| 282 | ConstantExpr *CE = dyn_cast<ConstantExpr>(U); |
| 283 | |
| 284 | if (!CE || CE->getNumUses() != 1) |
| 285 | return false; |
| 286 | |
| 287 | Constant *Init = dyn_cast<Constant>(CE->use_back()); |
| 288 | if (!Init || Init->getNumUses() != 1) |
| 289 | return false; |
| 290 | |
| 291 | GlobalVariable *GV = dyn_cast<GlobalVariable>(Init->use_back()); |
| 292 | if (!GV || !GV->hasInitializer() || GV->getInitializer() != Init) |
| 293 | return false; |
| 294 | |
| 295 | DIVariable DV(GV); |
| 296 | if (!DV.isNull()) |
| 297 | return true; // User is llvm.dbg.variable |
| 298 | |
| 299 | DIGlobalVariable DGV(GV); |
| 300 | if (!DGV.isNull()) |
| 301 | return true; // User is llvm.dbg.global_variable |
| 302 | |
| 303 | return false; |
| 304 | } |
| 305 | |
| 306 | /// RemoveDbgInfoUser - Remove an User which is representing debug info. |
| 307 | void llvm::RemoveDbgInfoUser(User *U) { |
| 308 | assert (UserIsDebugInfo(U) && "Unexpected User!"); |
| 309 | ConstantExpr *CE = cast<ConstantExpr>(U); |
| 310 | while (!CE->use_empty()) { |
| 311 | Constant *C = cast<Constant>(CE->use_back()); |
| 312 | while (!C->use_empty()) { |
| 313 | GlobalVariable *GV = cast<GlobalVariable>(C->use_back()); |
| 314 | GV->eraseFromParent(); |
| 315 | } |
| 316 | C->destroyConstant(); |
| 317 | } |
| 318 | CE->destroyConstant(); |
| 319 | } |