X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FCodeGen%2FSelectionDAG%2FSelectionDAGISel.cpp;fp=lib%2FCodeGen%2FSelectionDAG%2FSelectionDAGISel.cpp;h=853a21a15eb97bedd1debb5246147e3240b6d5cf;hp=5f3e4a02341e8bbd7e35b6f0103f7f0d82272bfb;hb=8f2b4f1f9eaca4e4c7afaf7a3225557f53bb0f73;hpb=9ad8cc389cd0bcf99c9c2a2497e0d8a512abae9e diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 5f3e4a02341..853a21a15eb 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -470,9 +470,9 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { FuncInfo->SplitCSR = false; SmallVector Returns; - // We split CSR if the target supports it for the given calling convention + // We split CSR if the target supports it for the given function // and the function has only return exits. - if (TLI->supportSplitCSR(Fn.getCallingConv())) { + if (TLI->supportSplitCSR(MF)) { FuncInfo->SplitCSR = true; // Collect all the return blocks.