Don't assign rank numbers to debug intrinsic "calls".

This is needed so debug info doesn't change codegen.

llvm-svn: 66235
This commit is contained in:
Dale Johannesen 2009-03-06 01:41:59 +00:00
parent 6d8472b9cc
commit fb1caf3e1f
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@
#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/Pass.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Support/CFG.h"
@ -120,7 +121,8 @@ static bool isUnmovableInstruction(Instruction *I) {
I->getOpcode() == Instruction::Load ||
I->getOpcode() == Instruction::Malloc ||
I->getOpcode() == Instruction::Invoke ||
I->getOpcode() == Instruction::Call ||
(I->getOpcode() == Instruction::Call &&
!isa<DbgInfoIntrinsic>(I)) ||
I->getOpcode() == Instruction::UDiv ||
I->getOpcode() == Instruction::SDiv ||
I->getOpcode() == Instruction::FDiv ||