[llvm-commits] [PATCH] - Fix a bug in DAGCombining of extract-load

Duncan Sands baldrick at free.fr
Wed May 11 00:41:07 PDT 2011


Hi Nadav,

> This patch fixes a bug in the DAGCombiner. LoadSDNodes have two values (data,
> chain).
>
> If there is a store after the load node, then there is a chain, which means that
> there is another user.
>
> Thus, asking hasOneUser would fail. Instead we ask hasNUsesOfValue on the 'data'
> value.

this looks OK to me.

Ciao, Duncan.



More information about the llvm-commits mailing list