Chris Lattner 7e763ebd98 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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77160 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-26 17:46:03 +00:00
..
2009-02-20 22:20:18 +00:00
2009-04-01 21:33:08 +00:00
2009-06-02 20:32:59 +00:00
2009-01-09 19:25:42 +00:00
2009-07-19 01:42:34 +00:00
2009-02-20 22:20:18 +00:00
2009-02-20 22:20:18 +00:00
2009-01-09 19:25:42 +00:00
2009-02-20 22:20:18 +00:00
2009-01-09 19:25:42 +00:00
2009-02-20 22:20:18 +00:00
2009-01-09 19:25:42 +00:00
2009-02-20 22:20:18 +00:00
2009-05-04 18:40:41 +00:00
2009-02-20 22:20:18 +00:00
2009-01-08 06:11:51 +00:00
2009-06-24 20:41:17 +00:00
2009-07-26 04:52:45 +00:00
2009-07-24 07:12:20 +00:00
2009-01-09 19:25:42 +00:00