HomePhabricator

[X86] Add TB_NO_REVERSE to some folding table entries where the register from…

Authored by craig.topper on Jun 16 2019, 3:33 PM.

Description

[X86] Add TB_NO_REVERSE to some folding table entries where the register from uses the REX prefix, but the memory form does not.

It would not be safe to unfold the memory form the register form
without checking that we are compiling for 64-bit mode.

This probaby isn't a real functional issue since we are unlikely
to unfold any of these instructions since they don't have any
tied registers, aren't commutable, and don't have any inputs
other than the address.

llvm-svn: 363523

Details

Committed
craig.topperJun 16 2019, 3:33 PM
Parents
rG5a663bd77acb: [InstSimplify] Fix addo/subo undef folds (PR42209)
Branches
Unknown
Tags
Unknown