DAG: Change computeKnownBitsForFrameIndex to be usable by GISel
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 4 Jun 2020 14:27:45 +0000 (10:27 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 4 Jun 2020 14:50:26 +0000 (10:50 -0400)
commitaf867b7850a2078d73eab1c983db21e7fef0665a
tree22e30796f41ee61ede4299b31472acf5b6a5974d
parent9520bf146dd3baae8608755d7de0855db4664c77
DAG: Change computeKnownBitsForFrameIndex to be usable by GISel

This wasn't getting much value from the DAG or depth arguments, since
it's only called on the frame index root nodes. FrameIndexes can also
only return a scalar value, so it also didn't need DemandedElts.
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.h