This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Correct the check of simm9 in isLegalAddressingMode()
ClosedPublic

Authored by haicheng on Dec 6 2016, 1:18 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

haicheng updated this revision to Diff 80471.Dec 6 2016, 1:18 PM
haicheng retitled this revision from to [AArch64] Correct the check of simm9.
haicheng updated this object.
haicheng added a reviewer: t.p.northover.
haicheng set the repository for this revision to rL LLVM.
haicheng added subscribers: llvm-commits, gberry.
haicheng retitled this revision from [AArch64] Correct the check of simm9 to [AArch64] Correct the check of simm9 in isLegalAddressingMode().Dec 6 2016, 1:23 PM
haicheng updated this object.
t.p.northover added inline comments.Dec 6 2016, 1:28 PM
lib/Target/AArch64/AArch64ISelLowering.cpp
7440 ↗(On Diff #80471)

It would probably be better to use llvm::isInt<9>.

t.p.northover accepted this revision.Dec 6 2016, 1:28 PM
t.p.northover edited edge metadata.

OK with that change though.

This revision is now accepted and ready to land.Dec 6 2016, 1:28 PM
This revision was automatically updated to reflect the committed changes.