[PATCH] D23250: Fix jumptable with large code model

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 7 16:25:22 PDT 2016


artagnon created this revision.
artagnon added reviewers: eli.friedman, lhames, joerg.
artagnon added a subscriber: llvm-commits.

As the test shows, a simple switch used to emit the undesirable
"movslq (%rax,%rdi,4), %rsi" jumps when `-code-model=Large`.
Emit EK_BlockAddress jumps instead.

https://reviews.llvm.org/D23250

Files:
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  test/CodeGen/X86/2016-08-07-jumptable-largecodemodel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23250.67106.patch
Type: text/x-patch
Size: 103226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160807/63a03899/attachment-0001.bin>


More information about the llvm-commits mailing list