mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 16:40:15 +00:00
Don't call RegionInlinedFnEnd if our optimization level isn't -O0.
llvm-svn: 72024
This commit is contained in:
parent
ae8a483328
commit
3f41e5ca13
@ -3929,7 +3929,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
||||
MachineFunction &MF = DAG.getMachineFunction();
|
||||
DISubprogram Subprogram(cast<GlobalVariable>(REI.getContext()));
|
||||
|
||||
if (Subprogram.isNull() || Subprogram.describes(MF.getFunction())) {
|
||||
if (OptLevel == CodeGenOpt::None ||
|
||||
Subprogram.isNull() || Subprogram.describes(MF.getFunction())) {
|
||||
unsigned LabelID =
|
||||
DW->RecordRegionEnd(cast<GlobalVariable>(REI.getContext()));
|
||||
DAG.setRoot(DAG.getLabel(ISD::DBG_LABEL, getCurDebugLoc(),
|
||||
|
Loading…
Reference in New Issue
Block a user