llvm.org GIT mirror llvm / dfbd083
Merge 98042. Don't try to fold V_SET0 and V_SETALLONES to loads in medium and large code models. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_27@98301 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 10 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
25242524 // Folding a V_SET0 or V_SETALLONES as a load, to ease register pressure.
25252525 // Create a constant-pool entry and operands to load from it.
25262526
2527 // Medium and large mode can't fold loads this way.
2528 if (TM.getCodeModel() != CodeModel::Small &&
2529 TM.getCodeModel() != CodeModel::Kernel)
2530 return NULL;
2531
25272532 // x86-32 PIC requires a PIC base register for constant pools.
25282533 unsigned PICBase = 0;
25292534 if (TM.getRelocationModel() == Reloc::PIC_) {