[LLVMdev] Bugfix: SCCP

Stephan Reiter stephan.reiter at gmail.com
Tue Nov 10 06:58:22 PST 2009


The SCCP pass was failing an assertion that I traced back to
SCCPSolver::visitExtractValueInst. getStructValueState was used on the
aggregate operand even if it had no structure type. I added a check to
use getStructValueState for structs and getValueState for other
operands.

This behavior was introduced in r85793. Please note that I'm not sure
whether my changes correctly address this problem. In case they don't,
I'd be glad to learn why in order to get a better understanding of
llvm. :-)

Please find attached a patch.

Best,
Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sccp-fix.patch
Type: application/octet-stream
Size: 837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091110/592c3056/attachment.obj>


More information about the llvm-dev mailing list