diff options
author | Craig Topper <craig.topper@intel.com> | 2017-11-08 20:17:33 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-11-08 20:17:33 +0000 |
commit | 78a770402afd19f69a18161c637df6af05e5815e (patch) | |
tree | 94d84c2b4cb338834dfe6407fb6efd21a6ad2a31 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | fb0ebecf0e0530540d2a219837a1734ecc3584dc (diff) | |
download | bcm5719-llvm-78a770402afd19f69a18161c637df6af05e5815e.tar.gz bcm5719-llvm-78a770402afd19f69a18161c637df6af05e5815e.zip |
[X86] Correct the implementation of BEXTR load folding to use the shift as the parent node and pass a separate root.
We were calling tryFoldLoad with the 'and' node was the root and parent node of the load. But the parent of the load should be the shift that proceeds the and. While the and node is correctly the root node.
To fix this I had to make tryFoldLoad take a separate use and root input. I've added a convenience version with the old signature to avoid updating the other call sites.
llvm-svn: 317720
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions