MakeSegmentRef: ignore 128-bit integer constants

This commit is contained in:
Alessandro Di Federico
2022-08-02 10:37:32 +02:00
parent c15fae2065
commit e23656fa5f
@@ -75,7 +75,8 @@ bool MakeSegmentRefPass::runOnFunction(Function &F) {
if (BI->getCondition() != Op)
continue;
if (ConstantInt *ConstOp = dyn_cast<CI>(skipCasts(Op))) {
ConstantInt *ConstOp = dyn_cast<CI>(skipCasts(Op));
if (ConstOp != nullptr and ConstOp->getBitWidth() <= 64) {
uint64_t Literal = ConstOp->getZExtValue();
if (auto Segment = findLiteralInSegments(*Model, Literal); Segment) {