mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
MachineCombiner Pass for selecting faster instruction sequence on AArch64
Re-commit of r214832,r21469 with a work-around that avoids the previous problem with gcc build compilers The work-around is to use SmallVector instead of ArrayRef of basic blocks in preservesResourceLen()/MachineCombiner.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215151 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -273,7 +273,9 @@ bool MachineCombiner::preservesResourceLen(
|
||||
|
||||
// Compute current resource length
|
||||
|
||||
ArrayRef<const MachineBasicBlock *> MBBarr(MBB);
|
||||
//ArrayRef<const MachineBasicBlock *> MBBarr(MBB);
|
||||
SmallVector <const MachineBasicBlock *, 1> MBBarr;
|
||||
MBBarr.push_back(MBB);
|
||||
unsigned ResLenBeforeCombine = BlockTrace.getResourceLength(MBBarr);
|
||||
|
||||
// Deal with SC rather than Instructions.
|
||||
|
Reference in New Issue
Block a user