[PATCH] [X86] Special-case 2x CMOV when custom-inserting.
Ahmed Bougacha
ahmed.bougacha at gmail.com
Mon Mar 2 14:28:31 PST 2015
Hi MatzeB,
Follow-up to http://reviews.llvm.org/D7634.
This lets us avoid a few copies that are otherwise hard to get rid of. My first approach was to add a CMOV2 node, but after discussing with Matthias, we agreed it's less hacky to teach the custom inserter to look at the next instruction. Mentioned that explicitly in the EmitWithCustomInserter comment.
-Ahmed
http://reviews.llvm.org/D8019
Files:
include/llvm/Target/TargetLowering.h
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/cmovcmov.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8019.21041.patch
Type: text/x-patch
Size: 13584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150302/7dead301/attachment.bin>
More information about the llvm-commits
mailing list