This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Mark 255 and 65535 as cheap for Thumb1 "And"
ClosedPublic

Authored by dmgreen on Feb 4 2019, 1:15 AM.

Details

Summary

This prevents Constant Hoisting from pulling the constant out of the block, allowing
us to still produce LDRH/UXTH nodes. LDRB/UXTB (255) is already cheap by the
default getIntImmCost, but I've added it for clarity.

Diff Detail

Repository
rL LLVM

Event Timeline

dmgreen created this revision.Feb 4 2019, 1:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 4 2019, 1:15 AM
This revision is now accepted and ready to land.Feb 4 2019, 3:04 AM
This revision was automatically updated to reflect the committed changes.