[llvm-commits] PATCH: new Value::getThruSplat API
gohman at apple.com
Wed Oct 27 12:57:45 CDT 2010
On Oct 26, 2010, at 11:34 PM, Nick Lewycky wrote:
> This patch adds a new method on Value called getThruSplat() which returns the splatted value iff this is a ConstantValue with a splat, or 'this' otherwise. I demonstrate its usage by updating InstructionSimplify to uniformly handle splat vectors alongside ConstantInt values.
Looks reasonable to me.
How about "getScalarValue" instead of "getThruSplat"?
I don't have strong opinions about it though.
More information about the llvm-commits