diff options
| author | Reid Kleckner <rnk@google.com> | 2019-07-08 21:05:20 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2019-07-08 21:05:20 +0000 |
| commit | 2f07c2e9d9cc66c5c560a28ae7a706756efce2c4 (patch) | |
| tree | 1d293dda4407e93472d1a3fcd0b1f32c7a6dcf7a /llvm/lib/CodeGen/SelectionDAG | |
| parent | f0d3dcec97a1e335452071440a73081908da712f (diff) | |
| download | bcm5719-llvm-2f07c2e9d9cc66c5c560a28ae7a706756efce2c4.tar.gz bcm5719-llvm-2f07c2e9d9cc66c5c560a28ae7a706756efce2c4.zip | |
Standardize on MSVC behavior for triples with no environment
Summary:
This makes it so that IR files using triples without an environment work
out of the box, without normalizing them.
Typically, the MSVC behavior is more desirable. For example, it tends to
enable things like constant merging, use of associative comdats, etc.
Addresses PR42491
Reviewers: compnerd
Subscribers: hiraditya, dexonsmith, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64109
llvm-svn: 365387
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 9d86778408a..bdf9f2c166e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -386,7 +386,7 @@ static void SplitCriticalSideEffectEdges(Function &Fn, DominatorTree *DT, static void computeUsesMSVCFloatingPoint(const Triple &TT, const Function &F, MachineModuleInfo &MMI) { // Only needed for MSVC - if (!TT.isKnownWindowsMSVCEnvironment()) + if (!TT.isWindowsMSVCEnvironment()) return; // If it's already set, nothing to do. |

