diff options
author | Eric Christopher <echristo@gmail.com> | 2014-07-04 01:55:26 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-07-04 01:55:26 +0000 |
commit | c1058df66f15589012f5e2dc1ab571906778e8cc (patch) | |
tree | 4e038f2de8ee0011be947a0ad0529641abca247b /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | ac90380b5e9ef1c4fa32ab0bee869a0be5ddbea2 (diff) | |
download | bcm5719-llvm-c1058df66f15589012f5e2dc1ab571906778e8cc.tar.gz bcm5719-llvm-c1058df66f15589012f5e2dc1ab571906778e8cc.zip |
Move function dependent resetting of a subtarget variable out of the
subtarget. This involved having the movt predicate take the current
function - since we care about size in instruction selection for
whether or not to use movw/movt take the function so we can check
the attributes. This required adding the current MachineFunction to
FastISel and propagating through.
llvm-svn: 212309
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 5db2545dbaa..445572a5529 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -1210,6 +1210,7 @@ FastISel::SelectOperator(const User *I, unsigned Opcode) { FastISel::FastISel(FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo) : FuncInfo(funcInfo), + MF(funcInfo.MF), MRI(FuncInfo.MF->getRegInfo()), MFI(*FuncInfo.MF->getFrameInfo()), MCP(*FuncInfo.MF->getConstantPool()), |