diff options
| author | Craig Topper <craig.topper@intel.com> | 2019-08-31 23:52:21 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2019-08-31 23:52:21 +0000 |
| commit | 1329cc6e01e030e62d07983988b6979ffcfd638c (patch) | |
| tree | dfd2fd906043e198de2d6d95c70f481957e2edae /llvm/lib/Target/X86/X86InstrInfo.cpp | |
| parent | a627bd3a0255946dcf8863de1da1b3002467c902 (diff) | |
| download | bcm5719-llvm-1329cc6e01e030e62d07983988b6979ffcfd638c.tar.gz bcm5719-llvm-1329cc6e01e030e62d07983988b6979ffcfd638c.zip | |
[X86] Compress the flag bits in the folding tables to make room for more bits in an upcoming patch.
llvm-svn: 370600
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index b28a91777ec..88c5ae2d416 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -4805,6 +4805,7 @@ MachineInstr *X86InstrInfo::foldMemoryOperandImpl( if (I != nullptr) { unsigned Opcode = I->DstOp; unsigned MinAlign = (I->Flags & TB_ALIGN_MASK) >> TB_ALIGN_SHIFT; + MinAlign = MinAlign ? 1 << (MinAlign - 1) : 0; if (Align < MinAlign) return nullptr; bool NarrowToMOV32rm = false; |

