[PATCH] D44559: [Sema] Wrong width of result of mul operation

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 30 08:53:13 PDT 2018


craig.topper added a comment.

While X86 does have multiplies that return double width results, it also has 16/32/64-bit forms of imul that only return the lower portion of the result. Those multiplies are typically faster and have fewer uops than the double width multiplies so we prefer to use that instruction when possible. We are currently using the double width multiply for 8*8->8 multiplies because there is no 8-bit single width multiply.


https://reviews.llvm.org/D44559





More information about the cfe-commits mailing list