summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-09-16 21:20:36 +0000
committerSanjay Patel <spatel@rotateright.com>2016-09-16 21:20:36 +0000
commitc96f6db2463451a7e24992e6fe3fed9c7a1f1540 (patch)
tree88ee417deb7a37de089246d653752c72d8b6d315 /llvm/lib/DebugInfo/CodeView/CodeViewError.cpp
parentb2a0abdf0e8d351d9d69a0a875ae95931cf7ed5e (diff)
downloadbcm5719-llvm-c96f6db2463451a7e24992e6fe3fed9c7a1f1540.tar.gz
bcm5719-llvm-c96f6db2463451a7e24992e6fe3fed9c7a1f1540.zip
[InstCombine] allow vector types for constant folding / computeKnownBits (PR24942)
computeKnownBits() already works for integer vectors, so allow vector types when calling that from InstCombine. I don't think the change to use m_APInt in computeKnownBits is strictly necessary because we do check for ConstantVector later, but it's more efficient to handle the splat case without needing to loop on vector elements. This should work with InstSimplify, but doesn't yet, so I made that a FIXME comment on the test for PR24942: https://llvm.org/bugs/show_bug.cgi?id=24942 Differential Revision: https://reviews.llvm.org/D24677 llvm-svn: 281777
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/CodeViewError.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud