- this should fix PR13780
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163370
91177308-0d34-0410-b5e6-
96231b3b80d8
}
case Intrinsic::lifetime_start:
case Intrinsic::lifetime_end: {
+ // Stack coloring is not enabled in O0, discard region information.
+ if (TM.getOptLevel() == CodeGenOpt::None) {
+ if (Intrinsic == Intrinsic::lifetime_start)
+ setValue(&I, DAG.getUNDEF(TLI.getPointerTy()));
+ return 0;
+ }
SDValue Ops[2];
AllocaInst *LifetimeObject =dyn_cast_or_null<AllocaInst>(
GetUnderlyingObject(I.getArgOperand(1), TD));