Skip to content
Snippets Groups Projects
Commit e1e10e18 authored by Chris Lattner's avatar Chris Lattner
Browse files

Implement InstCombine:shift.ll:test16, which turns (X >> C1) & C2 != C3

into (X & (C2 << C1)) != (C3 << C1), where the shift may be either left or
right and the compare may be any one.

This triggers 1546 times in 176.gcc alone, as it is a common pattern that
occurs for bitfield accesses.

llvm-svn: 13740
parent 6a02158b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment