mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
add a missed optimization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68a17febc7
commit
b638cd89db
@ -204,3 +204,13 @@ There are two ways to fix this:
|
|||||||
disambiguate the pointers.
|
disambiguate the pointers.
|
||||||
|
|
||||||
Number 1 is the preferred solution.
|
Number 1 is the preferred solution.
|
||||||
|
|
||||||
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
The instruction selector sometimes misses folding a load into a compare. The
|
||||||
|
pattern is written as (cmp reg, (load p)). Because the compare isn't
|
||||||
|
commutative, it is not matched with the load on both sides. The dag combiner
|
||||||
|
should be made smart enough to cannonicalize the load into the RHS of a compare
|
||||||
|
when it can invert the result of the compare for free.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user