[PATCH] D44219: [ConstantFolding, InstSimplify] Handle more vector GEPs

Matthew Simpson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 7 11:26:42 PST 2018


mssimpso created this revision.
mssimpso added reviewers: mkuper, loladiro, haicheng, majnemer.

This patch addresses some additional cases where the compiler crashes upon encountering vector GEPs. There are a few identity-like cases (e.g., getelementptr %p, 0 -> %p) present in InstSimplify and ConstantFolding and a case in ConstantFolding that tries to mark GEPs inbounds. I'm happy to split this patch up if preferable. This should fix PR36116.

Reference: https://bugs.llvm.org/show_bug.cgi?id=36116


Repository:
  rL LLVM

https://reviews.llvm.org/D44219

Files:
  lib/Analysis/InstructionSimplify.cpp
  lib/IR/ConstantFold.cpp
  test/Analysis/ConstantFolding/vectorgep-crash.ll
  test/Transforms/InstSimplify/vector_gep.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44219.137441.patch
Type: text/x-patch
Size: 4534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180307/af26d52a/attachment.bin>


More information about the llvm-commits mailing list