[PATCH] CodeGenPrepare: Avoid and/or i1 in select conditions.
hfinkel at anl.gov
hfinkel at anl.gov
Thu Mar 5 17:38:06 PST 2015
REPOSITORY
rL LLVM
================
Comment at: include/llvm/Target/TargetLowering.h:1113
@@ +1112,3 @@
+ // Only do the transform if the value fits into one register.
+ return getNumRegisters(Context, VT) <= 1;
+ }
----------------
> Tweak the callback to not cover types that need multiple registers as those will typically be broken down into multiple select-like instructions.
Normally, to check this condition, we'd just use:
isTypeLegal(VT)
http://reviews.llvm.org/D7622
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list