[PATCH] D28474: PeepholeOptimizer: Do not replace SubregToReg(bitcast like)

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 12:56:34 PST 2017


qcolombet accepted this revision.
qcolombet added a comment.
This revision is now accepted and ready to land.

Hi Matthias,

That's sad that bit casts have side effects, but I agree that it seems to be the best fix. As a side question, are there anything else that check for isBitcast in other optimizations and that may have similar issues?

Anyhow, LGTM.

Cheers,
-Quentin


Repository:
  rL LLVM

https://reviews.llvm.org/D28474





More information about the llvm-commits mailing list