Sink the collection of return instructions until after *all*
[oota-llvm.git] / lib / Transforms / Utils / SimplifyCFG.cpp
index d53a46ee0235bd136b405ccd1440a9198205f95b..66dd2c954e29c93d4b650801a7360e595b0d007f 100644 (file)
@@ -2562,7 +2562,7 @@ static bool EliminateDeadSwitchCases(SwitchInst *SI) {
   Value *Cond = SI->getCondition();
   unsigned Bits = cast<IntegerType>(Cond->getType())->getBitWidth();
   APInt KnownZero(Bits, 0), KnownOne(Bits, 0);
-  ComputeMaskedBits(Cond, APInt::getAllOnesValue(Bits), KnownZero, KnownOne);
+  ComputeMaskedBits(Cond, KnownZero, KnownOne);
 
   // Gather dead cases.
   SmallVector<ConstantInt*, 8> DeadCases;