Skip to content
Commit 47d988c5 authored by Rafael Espindola's avatar Rafael Espindola
Browse files

When gvn decides to replace an instruction with another, we have to patch the

replacement to make it at least as generic as the instruction being replaced.
This includes:
* dropping nsw/nuw flags
* getting the least restrictive tbaa and fpmath metadata
* merging ranges

Fixes PR12979.

llvm-svn: 157958
parent 11fb248a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment