HomePhabricator

[SLSR] Fix crash on handling 128-bit integers.

Description

[SLSR] Fix crash on handling 128-bit integers.

ConstantInt::getSExtValue may fail on >64-bit integers. Add checks to call
getSExtValue only on narrow integers.

As a minor aside, simplify slsr-gep.ll to remove unnecessary load instructions.

Details

Committed
jingyueJul 9 2016, 12:13 PM
Parents
rL274981: fix documentation comments; NFC
Branches
Unknown
Tags
Unknown