Allow PeepholeOptimizer to fold a few more cases
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Tue, 11 Aug 2015 08:19:43 +0000 (08:19 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Tue, 11 Aug 2015 08:19:43 +0000 (08:19 +0000)
commitfdc5012e06efa540dabcbaecf448a7baa338271f
tree82460a4fab6519f73941abcc9928fdc628a068c1
parentea7c99472dec39d6ffd4fde2832489a325258fb1
Allow PeepholeOptimizer to fold a few more cases

The condition for clearing the folding candidate list was clamped together
with the "uninteresting instruction" condition. This is too conservative,
e.g. we don't need to clear the list when encountering an IMPLICIT_DEF.

Differential Revision: http://reviews.llvm.org/D11591

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244577 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PeepholeOptimizer.cpp
test/CodeGen/X86/avx-cvt.ll
test/CodeGen/X86/shift-bmi2.ll