Skip to content

Commit 2cb97c7

Browse files
committed
[X86] Add TODO for getTargetConstantFromBasePtr to support non-zero offsets.
As noted on #66991 - we sometimes share vector constant pool entries, referencing subvectors within them via pointer offsets
1 parent 066dc1e commit 2cb97c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4639,6 +4639,7 @@ static ConstantPoolSDNode *getTargetConstantPoolFromBasePtr(SDValue Ptr) {
46394639
return dyn_cast<ConstantPoolSDNode>(Ptr);
46404640
}
46414641

4642+
// TODO: Add support for non-zero offsets.
46424643
static const Constant *getTargetConstantFromBasePtr(SDValue Ptr) {
46434644
ConstantPoolSDNode *CNode = getTargetConstantPoolFromBasePtr(Ptr);
46444645
if (!CNode || CNode->isMachineConstantPoolEntry() || CNode->getOffset() != 0)

0 commit comments

Comments
 (0)