[PATCH] [x86 - inline asm] Favor reg over memory in asm w/ one input parameter
Gerolf Hoflehner
ghoflehner at apple.com
Fri Apr 24 17:34:04 PDT 2015
Hi echristo,
When more than one location for an asm parameter is specified,
the most general is selected. In the specific case of an 'rm' constraint
this gives higher priority to a memory vs register location.
In case there is only one input operand this is too conservative.
The purpose of this patch is to allow higher priority for the
register location in that case.
http://reviews.llvm.org/D9271
Files:
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/inline-asm-rm-constraint.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9271.24423.patch
Type: text/x-patch
Size: 5964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150425/7bb0b31e/attachment.bin>
More information about the llvm-commits
mailing list