[PATCH] CodeGenPrepare: Avoid and/or i1 in select conditions.
matze at braunis.de
Thu Mar 5 14:41:50 PST 2015
After looking at some more examples I tweaked the code some more:
- I'm not checking for hasOnlySelectAsUser() anymore. The fact that we have only select users means that we could get rid of the extra register and the SETCC but we produce an extra select instruction for each of the users, this is not necessarily better so I changed to the conservative hasOneUser().
- Tweak the callback to not cover types that need multiple registers as those will typically be broken down into multiple select-like instructions.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10939 bytes
Desc: not available
More information about the llvm-commits