When generating code for a shift loop, check the shift amount against the literal value 0, not R0 llvm-svn: 304284