X86 Peephole: fold loads to the source register operand if possible.
authorManman Ren <mren@apple.com>
Thu, 2 Aug 2012 19:37:32 +0000 (19:37 +0000)
committerManman Ren <mren@apple.com>
Thu, 2 Aug 2012 19:37:32 +0000 (19:37 +0000)
commit127eea87d666ccc9fe7025f41148c33af0f8c84b
tree97b08e6625f5465adbdee33975e86a496bc85af8
parent1de266be13c956f4af9566b000b67ef75454d0a8
X86 Peephole: fold loads to the source register operand if possible.

Add more comments and use early returns to reduce nesting in isLoadFoldable.
Also disable folding for V_SET0 to avoid introducing a const pool entry and
a const pool load.

rdar://10554090 and rdar://11873276

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161207 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/PeepholeOptimizer.cpp
lib/Target/X86/X86InstrInfo.h
test/CodeGen/X86/sse-minmax.ll
test/CodeGen/X86/vec_compare.ll