[LLVMdev] Missed constant replacement opportunity with llvm.assume?

Josh Klontz josh.klontz at gmail.com
Fri Mar 27 08:29:43 PDT 2015

As of ToT it seems that even the simplest cases of assumes involving
equality between an instruction and a constant don't cause an instruction
RAUW constant.

In the attached example, %channels is assumed to be 3, leading to a missed
optimization opportunity with %src_c.

Am I overlooking something that would cause this optimization to be invalid?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150327/24c072be/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convert_grayscale_u8SCXY_u8SCXY.ll
Type: application/octet-stream
Size: 3103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150327/24c072be/attachment.obj>

More information about the llvm-dev mailing list