[X86] Add a flag to guard the wide load
authorGuozhi Wei <carrot@google.com>
Tue, 2 Jun 2020 23:12:50 +0000 (16:12 -0700)
committerGuozhi Wei <carrot@google.com>
Tue, 2 Jun 2020 23:16:13 +0000 (16:16 -0700)
commit587af86f1d8adc77b229ed27b2f553e99f9710cd
tree0eab2e7509e5073e3bc69d7241320b0d9014dd54
parent5138a91ef4f365a3e71eec4cea6b4599dfaabf26
[X86] Add a flag to guard the wide load

As shown in http://lists.llvm.org/pipermail/llvm-dev/2020-May/141854.html,
widen load can also cause stall. Add a flag to guard the widening code,
so users can disable it and evaluate its performance impact.

Differential Revision: https://reviews.llvm.org/D80943
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/lib/Target/X86/X86InstrInfo.td
llvm/test/CodeGen/X86/no-wide-load.ll [new file with mode: 0644]