I'm not 100% sure about this, since I'm worried about IR transforms
that might end up introducing divergence downstream once replaced with
a constant, but I haven't come up with an example yet.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
How this can even happen? Someone needs to use an intrinsic on a literal? This use doesn't make a lot of sense. Do you have a real example of such use?
Comment Actions
You can use readfirstlane to effectively assert that a function argument must be uniform. After inlining, it might see a constant