diff options
author | Dale Johannesen <dalej@apple.com> | 2009-03-06 01:41:59 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-03-06 01:41:59 +0000 |
commit | fb1caf3e1f1f7dd0b0c84c7875f054f3f6836ea2 (patch) | |
tree | 695fb729a764f42d74aa28c0887f362d9d1aeb4a /llvm/lib | |
parent | 6d8472b9cc39e0937be4ce02df6d25925fcf7b34 (diff) | |
download | bcm5719-llvm-fb1caf3e1f1f7dd0b0c84c7875f054f3f6836ea2.tar.gz bcm5719-llvm-fb1caf3e1f1f7dd0b0c84c7875f054f3f6836ea2.zip |
Don't assign rank numbers to debug intrinsic "calls".
This is needed so debug info doesn't change codegen.
llvm-svn: 66235
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index c33e3206dca..cf5887e6e21 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -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 || |