]> granicus.if.org Git - llvm/commit
[X86] Use getZeroVector and remove an unnecessary creation of an APInt before calling...
authorCraig Topper <craig.topper@intel.com>
Tue, 5 Dec 2017 01:28:04 +0000 (01:28 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 5 Dec 2017 01:28:04 +0000 (01:28 +0000)
commitfadb00b655d5d6128685f0f7a553936d62a8263d
treefbe75552bac78a259105786b663a1c49ec616e41
parentb65db5ed969985708f374745fd65eda720880826
[X86] Use getZeroVector and remove an unnecessary creation of an APInt before calling getConstant. NFCI

The getConstant function can take care of creating the APInt internally.

getZeroVector will take care of using the correct type for the build vector to avoid re-lowering.

The test change here is because execution domain constraints apparently pass through undef inputs of a zeroing xor. So the different ordering of register allocation here caused the dependency to change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319725 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/pr34605.ll