[PATCH] [X86] canonicalize a v2f64 blendi of 2 registers

Chandler Carruth chandlerc at gmail.com
Fri Feb 20 07:16:13 PST 2015


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:26211
@@ +26210,3 @@
+
+  // Canonicalize a v2f64 blend with a mask of 2 by swapping the vector
+  // operands and changing the mask to 1. This saves us a bunch of
----------------
Should also mention that the backend knows how to commute this instruction again as needed to match the register allocation.

http://reviews.llvm.org/D7777

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list