add optional param to copy metadata when creating selects; NFC
authorSanjay Patel <spatel@rotateright.com>
Sat, 26 Nov 2016 15:01:59 +0000 (15:01 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 26 Nov 2016 15:01:59 +0000 (15:01 +0000)
commit91e73a7bfaed49fb3e1f9d1d3fd30e40afb114a1
treef0675540616beff3e4374d4e148916781d3298be
parent10d5eec1a1615dcd3a4156041ae5e5a709d8679e
add optional param to copy metadata when creating selects; NFC

There are other spots where we can use this; we're currently dropping
metadata in some places, and there are proposed changes where we will
want to propagate metadata.

IRBuilder's CreateSelect() already has a parameter like this, so this
change makes the regular 'Create' API line up with that.

llvm-svn: 287976
llvm/include/llvm/IR/Instructions.h
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp