[X86] Qualify one of the heuristics in combineMul to only apply to positive multiply...
authorCraig Topper <craig.topper@intel.com>
Thu, 9 Aug 2018 23:27:42 +0000 (23:27 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 9 Aug 2018 23:27:42 +0000 (23:27 +0000)
commit9a8136f7b489ebbe3ae8ceafc912bc0ad9e90356
treeb28ddc9e92b578dc1a42bbe15bfb186c6b478fa3
parenta24ecc337f0cad831a5768a0a8f4d00069f78901
[X86] Qualify one of the heuristics in combineMul to only apply to positive multiply amounts.

This seems to slightly help the performance of one of our internal benchmarks. We probably need better heuristics here.

llvm-svn: 339406
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/mul-constant-i64.ll