]> granicus.if.org Git - llvm/commit
[X86] Remove truncation handling from EmitTest. Replace it with a DAG combine.
authorCraig Topper <craig.topper@intel.com>
Sun, 16 Dec 2018 18:35:55 +0000 (18:35 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 16 Dec 2018 18:35:55 +0000 (18:35 +0000)
commit53dfd27cfe8f59f7adcdce3eb94e9ecc1ac1e3dc
tree6e1d114c44a63bb4866fb8adcda6819ca8621bf5
parentaf08be2c8a50be70f50ae4c886c6a4af7925b606
[X86] Remove truncation handling from EmitTest. Replace it with a DAG combine.

I'd like to try to move a lot of the flag matching out of EmitTest and push it to isel or isel preprocessing. This is a step towards that.

The test-shrink-bug.ll changie is an improvement because we are no longer interfering with test shrink handling in isel.

The pr34137.ll change is a regression, but the IR came from -O0 and was not reduced by InstCombine. So it contains a lot of redundancies like duplicate loads that made it combine poorly.

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