summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-11-08 20:17:33 +0000
committerCraig Topper <craig.topper@intel.com>2017-11-08 20:17:33 +0000
commit78a770402afd19f69a18161c637df6af05e5815e (patch)
tree94d84c2b4cb338834dfe6407fb6efd21a6ad2a31 /llvm/lib/CodeGen/MachineInstr.cpp
parentfb0ebecf0e0530540d2a219837a1734ecc3584dc (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud