[PATCH] D23798: [Instruction] Introduce a predicate mustOperandBeConstant()

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 05:47:10 PDT 2016


jmolloy created this revision.
jmolloy added reviewers: spatel, majnemer.
jmolloy added a subscriber: llvm-commits.
jmolloy set the repository for this revision to rL LLVM.

Some operands to instructions may not be variables. Examples are shufflevector masks,
GEP indices when the type is a struct and extractvalue indices.

As this blacklist is difficult to get right, promote it from a SimplifyCFG helper
function into Instruction proper.

Repository:
  rL LLVM

https://reviews.llvm.org/D23798

Files:
  include/llvm/IR/Instruction.h
  lib/IR/Instruction.cpp
  lib/Transforms/Utils/SimplifyCFG.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23798.68974.patch
Type: text/x-patch
Size: 4177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160823/232b9be3/attachment.bin>


More information about the llvm-commits mailing list