summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMConstantIslandPass.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-03-29 23:14:26 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-03-29 23:14:26 +0000
commit7a4c071cd9f67599eba21e902079d0e85f2abf97 (patch)
tree16737d8614aee4f7c5ae3e9538f7d1fd50474d1c /lib/Target/ARM/ARMConstantIslandPass.cpp
parentccca22e9e2e03bdd782b1d4bf880ebf79e7b7e77 (diff)
downloadllvm-7a4c071cd9f67599eba21e902079d0e85f2abf97.tar.gz
llvm-7a4c071cd9f67599eba21e902079d0e85f2abf97.tar.bz2
llvm-7a4c071cd9f67599eba21e902079d0e85f2abf97.tar.xz
Invalidate liveness in ARMConstantIslandPass.
This pass splits basic blocks to insert constant islands, and it doesn't recompute the live-in lists. No later passes depend on accurate liveness information. This fixes PR12410 where the machine code verifier was complaining. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r--lib/Target/ARM/ARMConstantIslandPass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp
index b7b391d309..3123b6a905 100644
--- a/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -21,6 +21,7 @@
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineJumpTableInfo.h"
+#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Support/Debug.h"
@@ -392,6 +393,9 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &mf) {
HasFarJump = false;
+ // This pass invalidates liveness information when it splits basic blocks.
+ MF->getRegInfo().invalidateLiveness();
+
// Renumber all of the machine basic blocks in the function, guaranteeing that
// the numbers agree with the position of the block in the function.
MF->RenumberBlocks();