]> granicus.if.org Git - llvm/commit
[GISel]: Fix a bug in KnownBits where we should have been using SizeInBits
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 12 Aug 2019 21:28:12 +0000 (21:28 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 12 Aug 2019 21:28:12 +0000 (21:28 +0000)
commit18dab91b935d59804fef1393939f9bc5183fec4e
treeeba28fb7c89f153b75fcebe05a84d3621351efab
parent36255d2cb7da9e8b3acd29b7d0577f98e5bec630
[GISel]: Fix a bug in KnownBits where we should have been using SizeInBits

https://reviews.llvm.org/D66039

We were using getIndexSize instead of getIndexSizeInBits().
Added test case for G_PTRTOINT and G_INTTOPTR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368618 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/GISelKnownBits.cpp
unittests/CodeGen/GlobalISel/KnownBitsTest.cpp