[llvm-commits] [llvm] r163370 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Michael Liao
michael.liao at intel.com
Thu Sep 6 22:13:01 PDT 2012
Author: hliao
Date: Fri Sep 7 00:13:00 2012
New Revision: 163370
URL: http://llvm.org/viewvc/llvm-project?rev=163370&view=rev
Log:
Stop emitting lifetime region info when stack coloring is not enabled in O0
- this should fix PR13780
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=163370&r1=163369&r2=163370&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Fri Sep 7 00:13:00 2012
@@ -5218,6 +5218,12 @@
}
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));
More information about the llvm-commits
mailing list