[llvm-commits] [llvm] r136583 - /llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp

Jakub Staszak jstaszak at apple.com
Sat Jul 30 22:56:54 PDT 2011


>> 
> 
> There is more:
> InstCombine also canonicalizes >= and <= into > and <
> 
> "icmp sge i32 %x, 0" becomes "icmp sgt i32 %x, -1"
> 
> And I don't think you have to test for the unsigned compares here, instcombine
> should fold them to equality compares. Some of them (x uge 0) are even tautologies.


It looks like InstCombiner makes more work and I knew about :) All fixed in r136588.

Thanks!
- Kuba




More information about the llvm-commits mailing list