PeterH:
A voltage divider would be fine.Will your shift point be specific to the gear you're in i.e. taking the difference between gears into account? If not, you could simply use a shift light as a trigger and solve this problem with electrics rather than electronics.
I was planning to use a lookup table array with the optimal RPMs for each gear.