[PATCH] D10985: Redirect DataLayout from TargetMachine to Module in FastISel
Mehdi AMINI
mehdi.amini at apple.com
Tue Jul 7 11:37:57 PDT 2015
Caching is obviously a far better solution according to the size of the diff...
It show how worthwhile it is to split a large diff in small pieces :)
http://reviews.llvm.org/D10985
Files:
lib/CodeGen/SelectionDAG/FastISel.cpp
Index: lib/CodeGen/SelectionDAG/FastISel.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/FastISel.cpp
+++ lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -1612,7 +1612,7 @@
bool SkipTargetIndependentISel)
: FuncInfo(FuncInfo), MF(FuncInfo.MF), MRI(FuncInfo.MF->getRegInfo()),
MFI(*FuncInfo.MF->getFrameInfo()), MCP(*FuncInfo.MF->getConstantPool()),
- TM(FuncInfo.MF->getTarget()), DL(*TM.getDataLayout()),
+ TM(FuncInfo.MF->getTarget()), DL(MF->getDataLayout()),
TII(*MF->getSubtarget().getInstrInfo()),
TLI(*MF->getSubtarget().getTargetLowering()),
TRI(*MF->getSubtarget().getRegisterInfo()), LibInfo(LibInfo),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10985.29199.patch
Type: text/x-patch
Size: 721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150707/251bfd46/attachment.bin>
More information about the llvm-commits
mailing list