[CodeGen] Teach the peephole optimizer to remember (and exploit) all folding
authorLang Hames <lhames@gmail.com>
Wed, 2 Apr 2014 22:59:58 +0000 (22:59 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 2 Apr 2014 22:59:58 +0000 (22:59 +0000)
commit5dc14bd54ccc3562379f598ccd1ab917a07166cc
tree5a1f9c69145e2466c41fab8b75c4cbc5b3f7803c
parent46d005dbc4f4a55d3cf830abcd7bd10c6a3803f8
[CodeGen] Teach the peephole optimizer to remember (and exploit) all folding
opportunities in the current basic block, rather than just the last one seen.

<rdar://problem/16478629>

llvm-svn: 205481
llvm/lib/CodeGen/PeepholeOptimizer.cpp
llvm/test/CodeGen/X86/peephole-multiple-folds.ll [new file with mode: 0644]