This adds support for calculating sign bits of insert_subvector. I based it on the computeKnownBits.
My motivating case is propagating sign bits information across basic blocks on AVX targets. Working on reduced test case.
Paths
| Differential D56283
[X86] Add INSERT_SUBVECTOR to ComputeNumSignBits ClosedPublic Authored by craig.topper on Jan 3 2019, 11:27 AM.
Details Summary This adds support for calculating sign bits of insert_subvector. I based it on the computeKnownBits. My motivating case is propagating sign bits information across basic blocks on AVX targets. Working on reduced test case.
Diff Detail
Event Timeline
craig.topper added inline comments.
This revision is now accepted and ready to land.Jan 4 2019, 3:41 AM Closed by commit rL350432: [X86] Add INSERT_SUBVECTOR to ComputeNumSignBits (authored by ctopper). · Explain WhyJan 4 2019, 12:54 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 180306 llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/trunk/test/CodeGen/X86/known-signbits-vector.ll
|