This is an archive of the discontinued LLVM Phabricator instance.

[JumpThreading] Consider freeze as a zero-cost instruction
ClosedPublic

Authored by aqjune on Jul 31 2020, 5:15 AM.

Details

Summary

This is a simple patch that makes freeze as a zero-cost instruction, as bitcast already is.

Diff Detail

Event Timeline

aqjune created this revision.Jul 31 2020, 5:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2020, 5:15 AM
aqjune requested review of this revision.Jul 31 2020, 5:15 AM
aqjune updated this revision to Diff 282200.Jul 31 2020, 5:17 AM

Minor fix

Can we combine all the thread-two-bbs tests into one file, instead of keeping them in separate numbered files?

llvm/test/Transforms/JumpThreading/thread-two-bbs7.ll
9 ↗(On Diff #282200)

Please add a comment explaining what this is testing.

aqjune added a comment.Aug 4 2020, 1:10 AM

I merged the tests to a single file (https://github.com/llvm/llvm-project/commit/1ea84653378132091b5b6d31d4f6bf3ec7da7b56 ).
Two tests required targets that are different from x86_64-unknown-linux-gnu , so they are left unmerged.

aqjune updated this revision to Diff 282822.Aug 4 2020, 1:23 AM

Update test

aqjune updated this revision to Diff 282824.Aug 4 2020, 1:24 AM

Minor fix

efriedma accepted this revision.Aug 4 2020, 1:14 PM

LGTM

This revision is now accepted and ready to land.Aug 4 2020, 1:14 PM
This revision was landed with ongoing or failed builds.Aug 4 2020, 10:43 PM
This revision was automatically updated to reflect the committed changes.