OSDN Git Service

DAG: Add computeKnownBitsForFrameIndex
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 8 Nov 2017 08:52:31 +0000 (08:52 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 8 Nov 2017 08:52:31 +0000 (08:52 +0000)
commit19b50e8dffa341a1790bcb72f8cbf095bea4ee9f
tree8555d6cf21665838ad76ba279ea2073e4e417f2a
parent600fc9c8370f9a6d1a05774807a3288394ec51b4
DAG: Add computeKnownBitsForFrameIndex

Some of the AMDGPU stack addressing modes require knowing the sign
bit is zero. We used to accomplish this by custom lowering
frame indexes, and then putting an AssertZext around a
TargetFrameIndex. This required specifically looking for
the AssextZext + frame index pattern which was moderately
disgusting. The same could probably be accomplished
with a target specific node, but would still
require special handling of frame indexes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317671 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp