summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Program.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2011-05-11 14:40:50 +0000
committerNadav Rotem <nadav.rotem@intel.com>2011-05-11 14:40:50 +0000
commit8a7beb80f0168876967c2aaebb4829ee1560250c (patch)
treea0263871a18b8b4db82fc729b102b84994048b50 /llvm/lib/Support/Program.cpp
parentcfc9efa43ed9ce8f4324bbefcdcaf33ac7d3b790 (diff)
downloadbcm5719-llvm-8a7beb80f0168876967c2aaebb4829ee1560250c.tar.gz
bcm5719-llvm-8a7beb80f0168876967c2aaebb4829ee1560250c.zip
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. llvm-svn: 131183
Diffstat (limited to 'llvm/lib/Support/Program.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud