Skip to content
Commit e3c374ac authored by Chris Lattner's avatar Chris Lattner
Browse files

Use the RHS length instead of the LHS length. They are both the same,

but this ends up compiling code like this:

int foo(const StringRef &R) {
  return R == "food";
}

to use a constant sized memcmp instead of a variable memcmp.

llvm-svn: 77160
parent bd2cd929
Loading
Loading
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