Don't allocate patterns twice in AMD loader

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>