Skip to content

Commit

Permalink
Reverting r181331.
Browse files Browse the repository at this point in the history
Missing file, HexagonSplitConst32AndConst64.cpp, from lib/Target/Hexagon/CMakeLists.txt.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181334 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
JyotsnaVerma committed May 7, 2013
1 parent 81fda3b commit ddcf3ee
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 222 deletions.
2 changes: 0 additions & 2 deletions lib/Target/Hexagon/Hexagon.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ namespace llvm {
FunctionPass *createHexagonCFGOptimizer(const HexagonTargetMachine &TM);

FunctionPass *createHexagonSplitTFRCondSets(const HexagonTargetMachine &TM);
FunctionPass *createHexagonSplitConst32AndConst64(
const HexagonTargetMachine &TM);
FunctionPass *createHexagonExpandPredSpillCode(
const HexagonTargetMachine &TM);
FunctionPass *createHexagonHardwareLoops();
Expand Down
1 change: 1 addition & 0 deletions lib/Target/Hexagon/HexagonISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ HexagonTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const {
SDValue
HexagonTargetLowering::LowerConstantPool(SDValue Op, SelectionDAG &DAG) const {
EVT ValTy = Op.getValueType();

DebugLoc dl = Op.getDebugLoc();
ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
SDValue Res;
Expand Down
176 changes: 0 additions & 176 deletions lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp

This file was deleted.

11 changes: 1 addition & 10 deletions lib/Target/Hexagon/HexagonTargetMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "Hexagon.h"
#include "HexagonISelLowering.h"
#include "HexagonMachineScheduler.h"
#include "HexagonTargetObjectFile.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/Module.h"
#include "llvm/PassManager.h"
Expand Down Expand Up @@ -157,17 +156,9 @@ bool HexagonPassConfig::addPostRegAlloc() {
}

bool HexagonPassConfig::addPreSched2() {
const HexagonTargetMachine &TM = getHexagonTargetMachine();
HexagonTargetObjectFile &TLOF =
(HexagonTargetObjectFile&)(getTargetLowering()->getObjFileLowering());

if (getOptLevel() != CodeGenOpt::None)
addPass(&IfConverterID);
if (!TLOF.IsSmallDataEnabled()) {
addPass(createHexagonSplitConst32AndConst64(TM));
printAndVerify("After hexagon split const32/64 pass");
}
return true;
return false;
}

bool HexagonPassConfig::addPreEmitPass() {
Expand Down
8 changes: 1 addition & 7 deletions lib/Target/Hexagon/HexagonTargetObjectFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
using namespace llvm;

static cl::opt<int> SmallDataThreshold("hexagon-small-data-threshold",
cl::init(8), cl::Hidden,
cl::desc("The maximum size of an object in the sdata section"));
cl::init(8), cl::Hidden);

void HexagonTargetObjectFile::Initialize(MCContext &Ctx,
const TargetMachine &TM) {
Expand All @@ -47,11 +46,6 @@ void HexagonTargetObjectFile::Initialize(MCContext &Ctx,
static bool IsInSmallSection(uint64_t Size) {
return Size > 0 && Size <= (uint64_t)SmallDataThreshold;
}

bool HexagonTargetObjectFile::IsSmallDataEnabled () const {
return SmallDataThreshold > 0;
}

/// IsGlobalInSmallSection - Return true if this global value should be
/// placed into small data/bss section.
bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV,
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Hexagon/HexagonTargetObjectFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ namespace llvm {
bool IsGlobalInSmallSection(const GlobalValue *GV,
const TargetMachine &TM) const;

bool IsSmallDataEnabled () const;
const MCSection* SelectSectionForGlobal(const GlobalValue *GV,
SectionKind Kind,
Mangler *Mang,
Expand Down
26 changes: 0 additions & 26 deletions test/CodeGen/Hexagon/split-const32-const64.ll

This file was deleted.

0 comments on commit ddcf3ee

Please sign in to comment.