diff options
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp | 13 | 
1 files changed, 5 insertions, 8 deletions
| diff --git a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp index e743a5bce72..51859ada58d 100644 --- a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp +++ b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp @@ -700,14 +700,11 @@ INITIALIZE_PASS_END(PlaceSafepoints, "place-safepoints", "Place Safepoints",  static bool isGCLeafFunction(const CallSite &CS) {    Instruction *inst = CS.getInstruction();    if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(inst)) { -    switch (II->getIntrinsicID()) { -    default: -      // Most LLVM intrinsics are things which can never take a safepoint. -      // As a result, we don't need to have the stack parsable at the -      // callsite.  This is a highly useful optimization since intrinsic -      // calls are fairly prevelent, particularly in debug builds. -      return true; -    } +    // Most LLVM intrinsics are things which can never take a safepoint. +    // As a result, we don't need to have the stack parsable at the +    // callsite.  This is a highly useful optimization since intrinsic +    // calls are fairly prevelent, particularly in debug builds. +    return true;    }    // If this function is marked explicitly as a leaf call, we don't need to | 

