diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-06-22 01:18:16 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-06-22 01:18:16 +0000 |
commit | 4d54e5b2dd4a3d3bed38ff9c7aa57fc66adb5855 (patch) | |
tree | 8ffb7495b6a7d723ec73603ac30feef7874e54a0 /lib/CodeGen/BranchFolding.h | |
parent | 7e1d742e1a868871d7c35d3880d8aa5d6d5d21e2 (diff) | |
download | external_llvm-4d54e5b2dd4a3d3bed38ff9c7aa57fc66adb5855.zip external_llvm-4d54e5b2dd4a3d3bed38ff9c7aa57fc66adb5855.tar.gz external_llvm-4d54e5b2dd4a3d3bed38ff9c7aa57fc66adb5855.tar.bz2 |
Tail merging pass shall not break up IT blocks. rdar://8115404
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.h')
-rw-r--r-- | lib/CodeGen/BranchFolding.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/BranchFolding.h b/lib/CodeGen/BranchFolding.h index b087395..15dfa7f 100644 --- a/lib/CodeGen/BranchFolding.h +++ b/lib/CodeGen/BranchFolding.h @@ -102,8 +102,9 @@ namespace llvm { MachineBasicBlock *PredBB); void RemoveBlocksWithHash(unsigned CurHash, MachineBasicBlock* SuccBB, MachineBasicBlock* PredBB); - unsigned CreateCommonTailOnlyBlock(MachineBasicBlock *&PredBB, - unsigned maxCommonTailLength); + bool CreateCommonTailOnlyBlock(MachineBasicBlock *&PredBB, + unsigned maxCommonTailLength, + unsigned &commonTailIndex); bool OptimizeBranches(MachineFunction &MF); bool OptimizeBlock(MachineBasicBlock *MBB); |