HomePhabricator

[AArch64][FastISel] Fix integer extend optimization.

Description

[AArch64][FastISel] Fix integer extend optimization.

The integer extend optimization tries to fold the extend into the load
instruction. This requires us to identify if the extend has already been
emitted or not and act accordingly on it.

The check that was originally performed for this was not sufficient. Besides
checking the ValueMap for a mapped register we also need to check if the
virtual register has already an associated machine instruction that defines it.

This fixes rdar://problem/20470788.

Details

Committed
ributzkaApr 9 2015, 1:00 PM
Parents
rL234528: [Sema] Diagnose references to unbound arrays in function definitions
Branches
Unknown
Tags
Unknown