[llvm-commits] [PATCH] Change return type of getOptimalMemOpType() from EVT to MVT.

Patrik Hägglund H patrik.h.hagglund at ericsson.com
Fri Nov 23 03:44:31 PST 2012


Here are two small patches that change the return type of getOptimalMemOpType()
 from EVT to MVT. In the second patch there is also some other minor cleanups.

Let me know if you have any objections. Otherwise, I will commit them.

Regards,
Patrik Hägglund

[PATCH 1/2] Cleanup: Change return type of getOptimalMemOpType()
 from EVT to MVT.

The user of this function (FindOptimalMemOpLowering) asserts if not
receiving an MVT. Therefore, it makes no sense to use EVT.
---
 include/llvm/Target/TargetLowering.h   | 4 ++--
 lib/Target/ARM/ARMISelLowering.cpp     | 2 +-
 lib/Target/ARM/ARMISelLowering.h       | 2 +-
 lib/Target/Mips/MipsISelLowering.cpp   | 2 +-
 lib/Target/Mips/MipsISelLowering.h     | 2 +-
 lib/Target/PowerPC/PPCISelLowering.cpp | 4 ++--
 lib/Target/PowerPC/PPCISelLowering.h   | 4 ++--
 lib/Target/X86/X86ISelLowering.cpp     | 4 ++--
 lib/Target/X86/X86ISelLowering.h       | 4 ++--


[PATCH 2/2] Cleanup: Use an MVT instead of EVT. Clean up loop logic.

The code asserts at VT.getSimpleVT() if VT isn't an MVT.
---
 lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 19 ++++++++-----------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Cleanup-Change-return-type-of-getOpTtimalMemOpType-f.patch
Type: application/octet-stream
Size: 7883 bytes
Desc: 0001-Cleanup-Change-return-type-of-getOpTtimalMemOpType-f.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121123/920196db/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Cleanup-Use-an-MVT-instead-of-EVT.-Clean-up-loop-log.patch
Type: application/octet-stream
Size: 2462 bytes
Desc: 0002-Cleanup-Use-an-MVT-instead-of-EVT.-Clean-up-loop-log.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121123/920196db/attachment-0001.obj>


More information about the llvm-commits mailing list