summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-07-04 01:55:26 +0000
committerEric Christopher <echristo@gmail.com>2014-07-04 01:55:26 +0000
commitc1058df66f15589012f5e2dc1ab571906778e8cc (patch)
tree4e038f2de8ee0011be947a0ad0529641abca247b /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parentac90380b5e9ef1c4fa32ab0bee869a0be5ddbea2 (diff)
downloadbcm5719-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.cpp1
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()),
OpenPOWER on IntegriCloud