[PATCH] D19409: [X86] Handle MachineBasicBlock as a memory displacement operand in the LEA optimization pass

Andrey Turetskiy via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 05:15:26 PDT 2016


aturetsk created this revision.
aturetsk added reviewers: nadav, qcolombet.
aturetsk added subscribers: llvm-commits, zinovy.nis.

A memory displacement operand in a LEA instruction can be a MachineBasicBlock. Currently if that happens the LEA optimization pass crashes with 'UNREACHABLE'.
This patch fixes that.

http://reviews.llvm.org/D19409

Files:
  lib/Target/X86/X86OptimizeLEAs.cpp
  test/CodeGen/X86/lea-opt-memop-check-1.ll
  test/CodeGen/X86/lea-opt-memop-check-2.ll
  test/CodeGen/X86/lea-opt-memop-check.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19409.54634.patch
Type: text/x-patch
Size: 11629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160422/3bbc96b2/attachment.bin>


More information about the llvm-commits mailing list