mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
Fix pr4202: Disable CodePlacementOpt for ARM. The ARMConstantIslandPass has
to run last because it needs to know the exact size and position of every basic block. Currently CodePlacementOpt is set up to run last. It might be worthwhile to investigate reordering these passes, but for now, let's just make it work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e2b201bac3
commit
e6abdffe06
@ -288,7 +288,10 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||
setIfCvtDupBlockSizeLimit(Subtarget->isThumb() ? 0 : 2);
|
||||
|
||||
maxStoresPerMemcpy = 1; //// temporary - rewrite interface to use type
|
||||
benefitFromCodePlacementOpt = true;
|
||||
// Do not enable CodePlacementOpt for now: it currently runs after the
|
||||
// ARMConstantIslandPass and messes up branch relaxation and placement
|
||||
// of constant islands.
|
||||
// benefitFromCodePlacementOpt = true;
|
||||
}
|
||||
|
||||
const char *ARMTargetLowering::getTargetNodeName(unsigned Opcode) const {
|
||||
|
Loading…
Reference in New Issue
Block a user