Page MenuHomePhabricator

[AArch64][GlobalISel] Fix one use check in getTestBitReg

Authored by paquette on Feb 4 2020, 3:16 PM.



(1) The check needs to be on the 0th operand of whatever we're folding
(2) Checks for validity should happen before we change the bit

Fixes a bug which caused MultiSource/Applications/JM/lencod to fail at -O3.

Diff Detail

Event Timeline

paquette created this revision.Feb 4 2020, 3:16 PM
aemerson accepted this revision.Feb 5 2020, 9:50 AM


This revision is now accepted and ready to land.Feb 5 2020, 9:50 AM
This revision was automatically updated to reflect the committed changes.